Search Issue Tracker

By Design

Votes

0

Found in

5.3.5f1

Issue ID

795596

Regression

No

'Assignment made to the same variable' warning only happening when the variable isn't in an array

Scripting

-

'Assignment made to the same variable' warning only happening when the variable isn't in an array

To reproduce:
1. Open attached project
2. Open the script "TheScriptToEndAllBugs.cs"
3. Notice that even though lines 9 and 12 both assign to itself (a[5] = a[5] and a2 = a2, respectively), only line 12 gives the warning "Assignment made to same variable; did you mean to assign something else?"

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.