You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The compiler generates a truncated file if the code does a type check on a type and there is a field with the same name as the type.
The following snippet will reproduce the internal crash:
public class Class1
{
public BaseClass BaseClass = new BaseClass();
public void Foo()
{
BaseClass obj = new BaseClass();
bool isBaseClass;
if (obj is BaseClass)
{
isBaseClass = true;
}
else
{
isBaseClass = false;
}
}
}
Changing the field named BaseClass to another name and/or removing the "is" type check will lead to correct js code.
The text was updated successfully, but these errors were encountered:
The compiler generates a truncated file if the code does a type check on a type and there is a field with the same name as the type.
The following snippet will reproduce the internal crash:
Changing the field named BaseClass to another name and/or removing the "is" type check will lead to correct js code.
The text was updated successfully, but these errors were encountered: