Search Issue Tracker

Fixed in 2021.2.X

Votes

0

Found in

2019.3.10f1

Issue ID

1251569

Regression

No

ScriptUpdater crashes when alias for the same name is set multiple times in same source

Scripting

-

In the case a source needs to be ApiUpdated *and* it set C# alieases for the same *name* multiple times an exceptions is thrown in ScriptUpdater.

As a workaround user can use different alias names.

For instance (assuming there's a class named *Bar* in namespace *Foo*):

namespace NIQ
{
using F = Foo.Bar;

class C : F { }
}

namespace Other
{
using F = System.Console; // Crash here
}

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.