Search Issue Tracker
Duplicate
Votes
0
Found in
2018.1.0b1
2018.2.0f2
Issue ID
1059921
Regression
Yes
Editor throws compilation error when invoking a method with overloaded * operator
How to reproduce:
1. Download and open attached project "CSharpBug"
2. Observe Console
Expected result: Editor compiles script "Bug.cs" without errors
Actual result: Editor throws compilation error upon using * operator
Reproduced with: 2018.1.0b1, 2018.1.9f1, 2018.2.0f2, 2018.3.0f5
Error: Assets/Scripts/Bug.cs(53,18): error CS1525: Unexpected symbol `)', expecting `,'
Reference code:
(op1 + op2).GetValueScaled(result, Vector3.one); // This operator works as expected. Other operators (+, -, /, %) also work as expected.
(op1 * op2).GetValueScaled(result, Vector3.one); // This throws compilation error.
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
This is a duplicate of issue #1019866