Browse Source

typo @:nativeName -> @:native

Aleksandr Kuzmenko 6 years ago
parent
commit
de5e92075c

+ 1 - 1
src/typing/typeloadCheck.ml

@@ -150,7 +150,7 @@ let get_native_name meta =
 
 let check_native_name_override ctx child base =
 	let error() =
-		display_error ctx ("Field " ^ child.cf_name ^ " has different @:nativeName value than in superclass") child.cf_pos;
+		display_error ctx ("Field " ^ child.cf_name ^ " has different @:native value than in superclass") child.cf_pos;
 		display_error ctx ("Base field is defined here") base.cf_pos
 	in
 	try

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

@@ -1,3 +1,3 @@
-Main.hx:11: characters 16-47 : Field a has different @:nativeName value than in superclass
+Main.hx:11: characters 16-47 : Field a has different @:native value than in superclass
 Main.hx:6: characters 2-24 : Base field is defined here
 Main.hx:10: lines 10-12 : Defined in this class