nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f64b3e8
)
typing: prefix instantiation error with `Type Error`
author
Jean Privat
<jean@pryen.org>
Tue, 4 Nov 2014 20:24:45 +0000
(15:24 -0500)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/src/semantize/typing.nit
b/src/semantize/typing.nit
index
1fb3e07
..
bb66218
100644
(file)
--- a/
src/semantize/typing.nit
+++ b/
src/semantize/typing.nit
@@
-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