typing: prefix instantiation error with `Type Error`
authorJean Privat <jean@pryen.org>
Tue, 4 Nov 2014 20:24:45 +0000 (15:24 -0500)
committerJean Privat <jean@pryen.org>
Tue, 4 Nov 2014 20:24:45 +0000 (15:24 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/semantize/typing.nit

index 1fb3e07..bb66218 100644 (file)
@@ -1725,7 +1725,7 @@ redef class ANewExpr
                if not callsite.mproperty.is_new then
                        var kind = recvtype.mclass.kind
                        if kind != concrete_kind then
-                               v.error(self, "Cannot instantiate {kind} {recvtype}.")
+                               v.error(self, "Type Error: Cannot instantiate {kind} {recvtype}.")
                                return
                        end
                        self.mtype = recvtype