Search Issue Tracker

Fixed in 5.2.0

Votes

1

Found in

4.1.1f4

Issue ID

535280

Regression

No

Bool Property doesn't get initialized via Object Initializers

Scripting

-

Bool Property doesn't get initialized via Object Initializers

//script A.cs
...
var b = new TestB() { B = false };
Debug.Log(b.B); //prints true;
...

class TestB
{
public bool B = true;
}

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.