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
}