瀏覽代碼

[typer] give nicer error message when overriding Null<T>

closes #10672
Simon Krajewski 3 年之前
父節點
當前提交
191c140de4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/context/common.ml

+ 2 - 2
src/context/common.ml

@@ -821,9 +821,9 @@ let create compilation_step cs version args =
 			tint = m;
 			tfloat = m;
 			tbool = m;
-			tnull = (fun _ -> die "" __LOC__);
+			tnull = (fun _ -> die "Could use locate abstract Null<T> (was it redefined?)" __LOC__);
 			tstring = m;
-			tarray = (fun _ -> die "" __LOC__);
+			tarray = (fun _ -> die "Could not locate class Array<T> (was it redefined?)" __LOC__);
 		};
 		file_lookup_cache = new hashtbl_lookup;
 		file_keys = new file_keys;