-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Explained with the following example
@:enum abstract MyEnum(String)
{
var test = 'test'; // snow-style
}
switch(myEnum)
{
// suppose we have a typo:
case text:
// compiles fine because "text" is treated as a capture variable
}@:enum abstract MyEnum(String)
{
var MTest = 'test'; // haxe-std-lib-style
}
switch(myEnum)
{
// suppose we have a similar typo:
case MText:
// 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
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels