nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90452dd
)
autosuperinit: constructors can be defined in interface, so autosuperinit should...
author
Jean Privat
<jean@pryen.org>
Mon, 13 Jul 2015 15:40:30 +0000
(11:40 -0400)
committer
Jean Privat
<jean@pryen.org>
Mon, 13 Jul 2015 16:44:37 +0000
(12:44 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/semantize/auto_super_init.nit
patch
|
blob
|
history
diff --git
a/src/semantize/auto_super_init.nit
b/src/semantize/auto_super_init.nit
index
cb4b70a
..
4a432c7
100644
(file)
--- a/
src/semantize/auto_super_init.nit
+++ b/
src/semantize/auto_super_init.nit
@@
-73,13
+73,6
@@
redef class AMethPropdef
return
end
- # Do we inherit for a constructor?
- var skip = true
- for cd in mclassdef.in_hierarchy.direct_greaters do
- if cd.mclass.kind.need_init then skip = false
- end
- if skip then return
-
# Now we search for the absence of any explicit super-init invocation
# * via a "super"
# * via a call of an other init