public static var DEFAULT:String = "log";
switch(type)
{
case: DEFAULT: color = 0xffffff; // Capture variables must be lower-case
case: INFO: color = 0x00ffff;
case ERROR: color = 0xff0000;
}
Thank you!
Without -D no-pattern-matching there aren't the error above, really. (There was a similar error in an svg Parser.hx file, so my bad.)
Another one:
public static var DEFAULT:String = "log";
switch(type)
{
case: DEFAULT: color = 0xffffff; // Capture variables must be lower-case
case: INFO: color = 0x00ffff;
case ERROR: color = 0xff0000;
}
The error: Capture variables must be lower-case. This is because of the pattern matching engine?