HaxeFoundation / haxe

Haxe - The Cross-Platform Toolkit
https://haxe.org
6.03k stars 648 forks source link

[macro] reification pattern matching regression #11670

Closed kLabz closed 1 month ago

kLabz commented 1 month ago

This has been failing since 4.3.2:

class Test {
  static function main() {
    test(var foo:String);
  }

  static macro function test(e) {
    switch e {
        // Unrecognized pattern: untyped $__mk_pos__("Test.hx", 145, 150)
        case macro var $name:$ct:
        case _:

    }

    return macro {};
  }
}

https://try.haxe.org/#8715e05c

kLabz commented 1 month ago

Broken by ##11163