nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fff5f5
)
modelize: error in `autoinit` is used in class refinement
author
Jean Privat
<jean@pryen.org>
Fri, 29 May 2015 16:05:42 +0000
(12:05 -0400)
committer
Jean Privat
<jean@pryen.org>
Tue, 9 Jun 2015 00:44:16 +0000
(20:44 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/modelize/modelize_property.nit
patch
|
blob
|
history
diff --git
a/src/modelize/modelize_property.nit
b/src/modelize/modelize_property.nit
index
a5a8ef9
..
4633b3f
100644
(file)
--- a/
src/modelize/modelize_property.nit
+++ b/
src/modelize/modelize_property.nit
@@
-988,6
+988,8
@@
redef class AMethPropdef
if atautoinit != null then
if not mpropdef.is_intro then
modelbuilder.error(atautoinit, "Error: `autoinit` cannot be set on redefinitions.")
+ else if not mclassdef.is_intro then
+ modelbuilder.error(atautoinit, "Error: `autoinit` cannot be used in class refinements.")
else
self.is_autoinit = true
end