Search Issue Tracker
Postponed means that the issue was either a feature request or something that requires major refactoring on our side. Since that makes the issue not actionable in the close future we choose to close it as Postponed and add it on our internal roadmaps and technical debt pages instead.
Postponed
Votes
0
Found in
5.3.3p2
Issue ID
792402
Regression
No
[Compiling] C# compiler incorrectly sets accessibility on anonymous functions
Workaround: for now the workaround is to mark the nested class as internal (rather than private) or move it outside of the declaring class (un-nest it).
Steps to reproduce:
1. Open attached project
2. Reimport Test.cs script (to force recompile)
3. Notice error in console: Assets/Test.cs(12,33): error CS0050: Inconsistent accessibility: return type `A<T1>.B' is less accessible than method `<Map>c__AnonStorey0<T1>.<>m__0(A<T>.B)'
Reproduced with: 5.1.4f1, 5.2.4f1, 5.3.4p5, 5.4.0b17
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Audio Mixer does not change volume when lowering volume on an Audio Mixer loaded from AssetBundles
- Error “Value cannot be null. Parameter name: key UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)” thrown and Addressables build fails when "Include in Build" is disabled and using Addressables For Android package
- “error CS0433: The type 'CodeBinaryOperatorType' exists in both 'System.CodeDom and 'System" compilation errors are thrown when opening a specific project
- Metal Vertex Shader warning is being thrown when creating a VR Template Project
- Asset database warning is thrown when declaring font variable in the USS text file
Add comment