enum abstract FlxMouseButtonID(Int) {
var LEFT;
}
enum FlxMouseInputType {
Button(?id:FlxMouseButtonID);
}
class Test {
function test(input:FlxMouseInputType) {
switch input {
case Button(LEFT):
}
}
}
$ haxe Test
[ERROR] (unknown position)
| Not_found
If FlxMouseButtonID is turned into a regular enum, then it gives a proper error:
[ERROR] Test.hx:12: characters 16-20
12 | case Button(LEFT):
| ^^^^
| Unmatched patterns: Button(null)
The same error occurs on 3.4.7, so it is not a regression.
$ haxe Test [ERROR] (unknown position) | Not_foundIf
FlxMouseButtonIDis turned into a regular enum, then it gives a proper error:The same error occurs on 3.4.7, so it is not a regression.