Преглед на файлове

"Class not found" error msg should be "Type not found"

This error is produced by invalid imports. A .hx module can contain any type (abstract, typedef, enum), not just classes.
Gama11 преди 10 години
родител
ревизия
54f7002425
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      typecore.ml

+ 1 - 1
typecore.ml

@@ -254,7 +254,7 @@ let unify_error_msg ctx = function
 		msg
 
 let rec error_msg = function
-	| Module_not_found m -> "Class not found : " ^ Ast.s_type_path m
+	| Module_not_found m -> "Type not found : " ^ Ast.s_type_path m
 	| Type_not_found (m,t) -> "Module " ^ Ast.s_type_path m ^ " does not define type " ^ t
 	| Unify l ->
 		let ctx = print_context() in