Search Issue Tracker
Fixed
Votes
0
Found in
2017.1.0b1
Issue ID
901443
Regression
No
Issues with `Lazy<T>` and `Task<T>` when runtime is “Experimental (.NET 4.6 Equivalent)
Reproduction steps:
1. Open project attached (LazyTask.zip).
2. Open scene "Main".
3. Press play.
Expected result: Editor will enter play mode.
Actual result: Error appears: "Assets/LazyTask/Scripts/Main.cs(14,43): error CS0234: The type or namespace name `Tasks' does not exist in the namespace `System.Threading'. Are you missing an assembly reference?"
4. Comment line 14 and line 21 in Main.cs
5. Press play. (It should enter play mode).
6. Press test button in game view. (It should type "Hello" in console).
7. Open PlayerSettings window.
Expected result: PlayerSettings window will open and there will be no other consequences.
Actual result: Error appears: "Assets/LazyTask/Scripts/Main.cs(9,33): error CS0433: The imported type `System.Lazy<T>' is defined multiple times" and it is no longer usable. Unable to enter play mode.
8. Uncomment line 21 and 14 and comment line 9 and 20.
9. Press play.
Expected result: Error "The type or namespace name `Tasks' does not exist in the namespace..." will appear.
Actual Result: Player enter play mode.
Reproduced on: 2017.1.0b1.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Add comment