Search Issue Tracker
Fixed in 2017.2.X
Votes
1
Found in
2017.1.0b1
Issue ID
902369
Regression
No
Namespace collision when using static directive and enum types with .NET 4.6
Reproduction steps:
1. Open project attached(New Unity Project 3.zip)
2. Inspect console.
Expected result: There will be no error and compilation will succeed.
Actual result: Errors appear:
Assets/UsingStatic.cs(14,23): error CS0023: The `.' operator cannot be applied to operand of type `method group'
Assets/UsingStatic.cs(15,24): error CS1061: Type `int' does not contain a definition for `Up' and no extension method `Up' of type `int' could be found. Are you missing an assembly reference?
Note: Investigate scripts "CodeFile1" and "UsingStatic" for more information. According to user, it is a valid 4.6 code. Removing "using static TestClass;" makes it work as expected.
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
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Add comment