Browse Source

Revert "[typer] fail upon encountering unprocessed reification metadata"

This reverts commit 816f2b734e23858b52c64394b7e4e9d27472208c.
Simon Krajewski 2 years ago
parent
commit
02351abf63

+ 0 - 3
src/typing/typer.ml

@@ -1664,9 +1664,6 @@ 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()
 		| _ -> e()
 	in
 	ctx.meta <- old;

+ 0 - 5
tests/misc/projects/Issue10883/Main.hx

@@ -1,5 +0,0 @@
-class Main {
-	static function main() {
-		trace($i{"wtf"});
-	}
-}

+ 0 - 2
tests/misc/projects/Issue10883/compile-fail.hxml

@@ -1,2 +0,0 @@
---main Main
---interp

+ 0 - 1
tests/misc/projects/Issue10883/compile-fail.hxml.stderr

@@ -1 +0,0 @@
-Main.hx:3: characters 9-11 : Reification $i is not allowed outside of `macro` expression