closes #10883
@@ -1664,6 +1664,9 @@ and type_meta ?(mode=MGet) ctx m e1 with_type p =
| (EReturn e, p) -> type_return ~implicit:true ctx e with_type p
| _ -> e()
end
+ | (Meta.Dollar s,_,p) ->
+ display_error ctx.com (Printf.sprintf "Reification $%s is not allowed outside of `macro` expression" s) p;
+ e()
in
ctx.meta <- old;
@@ -0,0 +1,5 @@
+class Main {
+ static function main() {
+ trace($i{"wtf"});
+ }
+}
@@ -0,0 +1,2 @@
+--main Main
+--interp
@@ -0,0 +1 @@
+Main.hx:3: characters 9-11 : Reification $i is not allowed outside of `macro` expression