Search Issue Tracker

Fixed in 2019.1.X

Fixed in 2018.3.X

Votes

0

Found in

2018.2.7f1

Issue ID

1081267

Regression

No

APIUpdater crashes when script has qualified access to statically imported types

Scripting

-

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/

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.