Skip to content

Commit

Permalink
[tests] Add test for 11670
Browse files Browse the repository at this point in the history
  • Loading branch information
kLabz committed May 15, 2024
1 parent 968bbff commit e3b5e5b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/misc/projects/Issue11670/Main.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
class Main {
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 {};
}
}

1 change: 1 addition & 0 deletions tests/misc/projects/Issue11670/compile.hxml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-main Main
Empty file.

0 comments on commit e3b5e5b

Please sign in to comment.