소스 검색

[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;