nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
596e6ab
)
Remove a old exception for constructors.
author
Jean Privat
<jean@pryen.org>
Tue, 27 Jan 2009 13:15:04 +0000
(08:15 -0500)
committer
Jean Privat
<jean@pryen.org>
Tue, 27 Jan 2009 13:15:04 +0000
(08:15 -0500)
src/syntax/mmbuilder.nit
patch
|
blob
|
history
diff --git
a/src/syntax/mmbuilder.nit
b/src/syntax/mmbuilder.nit
index
e9bdce5
..
6f8879e
100644
(file)
--- a/
src/syntax/mmbuilder.nit
+++ b/
src/syntax/mmbuilder.nit
@@
-859,9
+859,7
@@
redef class PPropdef
#print "inh signature: {isig.recv} . {isig}"
#print "redef signature: {s.recv} . {s}"
- if glob.is_init and i.local_class.global != prop.local_class.global then
- # Do not check signature
- else if s.arity != isig.arity then
+ if s.arity != isig.arity then
v.error(self, "Redef error: {prop.local_class}::{prop} redefines {ip.local_class}::{ip} with {isig.arity} parameter(s).")
else
for i in [0..s.arity[ do