Search Issue Tracker

Duplicate

Votes

0

Found in

2018.1.0b1

2018.1.0b12

Issue ID

1030434

Regression

Yes

Overloading operator* and then using its result inline results in a compiler error in the Editor

Mono

-

To reproduce:

1. Open the project ,attached by the user (ControllerTest.zip)
2. Observe the error in the console
3. Inspect the line in the ExampleScript where the error is

Expected: line (f * f).Run();, where f is a custom class/struct with overloaded * operator, should not show any compiler errors.

Reproduced in 2018.1.0b1, 2018.1.0b13, 2018.1.0f1, 2018.2.0b2
Did not reproduce in 2017.3.2f1, 2017.4.1f1, 2018.1.0a7
Regression introduced in

  1. This is a duplicate of issue #1019866

    Valid code no longer compiles in new Unity versions

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.