Search Issue Tracker

Fixed in Unity 2019.1

Votes

0

Found in

2018.2.7f1

Issue ID

1081267

Regression

No

APIUpdater crashes when script has qualified access to statically imported types

Scripting

-

-

Priority: 3Not yet prioritized for a release

-

Severity: 3Secondary functionality broken

basically code like:

using static System.Console;

public class C
{
public void M()
{
Console.WriteLine("Test"); // this would cause APIUpdater to crash.
}
}

You can workaround this issue by removing the unnecessary type reference in the invocation of WriteLine() so M() method becomes:

public void M()
{
WriteLine("Test");
}

For related discussion, please see forum https://forum.unity.com/threads/api-updater-not-explicit-at-all.488046/

All about bugs

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