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
@:enumabstractMyEnum(String)
{
vartest='test'; // snow-style
}
switch(myEnum)
{
// suppose we have a typo:casetext:
// compiles fine because "text" is treated as a capture variable
}
@:enumabstractMyEnum(String)
{
varMTest='test'; // haxe-std-lib-style
}
switch(myEnum)
{
// suppose we have a similar typo:caseMText:
// failed to compile because MText is not part of MyEnum, // and haxe does not treat it as capture variable because it starts with capitalized letter
}
The text was updated successfully, but these errors were encountered:
Explained with the following example
The text was updated successfully, but these errors were encountered: