Search Issue Tracker
Fixed in 5.5.1
Votes
1
Found in
5.5.0b10
Issue ID
847798
Regression
Yes
Mono fails to compile script with Generic expression
Steps to reproduce:
1. Open User's attached project with
2. Open Console
Result: error in the Console: Assets/Shapes2/AreaExtensions.cs(210,64): error CS0314: The type `TVector' cannot be used as type parameter `TVector' in the generic type or method `VisoftMath.Shapes2.IBezier<TVector>'. There is no boxing or type parameter conversion from `TVector' to `VisoftMath.Shapes2.IVector<TVector>'
Reproduced with: 5.6.1p1, 5.6.1f1, 5.6.0a3, 5.5.0b11
Not reproduced with: 2017.1.0b4, 5.4.3f1, 5.3.7p1
Note:
The same code does compile in Visual Studio.
Code also compiles in older versions of Unity.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
quinn_scopely
Jan 11, 2017 17:38
We have reproduced this same problem with a small sample project at
https://support.unity3d.com/hc/en-us/requests/80932
It appears to be a specific combination of virtual functions, subclassing, and generics that triggers the bug.