Browse Source

a bit more neutral error message about modifying abstract `this` value

Dan Korostelev 7 years ago
parent
commit
4b6656216c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/typing/typer.ml

+ 1 - 1
src/typing/typer.ml

@@ -1069,7 +1069,7 @@ let rec type_ident_raise ctx i p mode =
 			(match ctx.curfield.cf_kind with
 			| Method MethInline -> ()
 			| Method _ when ctx.curfield.cf_name = "_new" -> ()
-			| _ -> error "You can only modify 'this' inside an inline function" p);
+			| _ -> error "Abstract 'this' value can only be modified inside an inline function" p);
 			AKExpr (get_this ctx p)
 		| (MCall, KAbstractImpl _) | (MGet, _)-> AKExpr(get_this ctx p)
 		| _ -> AKNo i)