Browse Source

default to Dynamic when get_underlying_type is used on @:coreType abstract

Simon Krajewski 11 years ago
parent
commit
4d7b9c51d8
1 changed files with 4 additions and 1 deletions
  1. 4 1
      codegen.ml

+ 4 - 1
codegen.ml

@@ -625,7 +625,10 @@ module Abstract = struct
 			let _ = find_to a pl m in
 			follow m
 		with Not_found ->
-			apply_params a.a_types pl a.a_this
+			if Meta.has Meta.CoreType a.a_meta then
+				t_dynamic
+			else
+				apply_params a.a_types pl a.a_this
 
 	let make_static_call ctx c cf a pl args t p =
 		let ta = TAnon { a_fields = c.cl_statics; a_status = ref (Statics c) } in