nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: type works: handle implicitly fixed formal parameters
[nit.git]
/
src
/
modelize_class.nit
diff --git
a/src/modelize_class.nit
b/src/modelize_class.nit
index
b00508b
..
ff0295f
100644
(file)
--- a/
src/modelize_class.nit
+++ b/
src/modelize_class.nit
@@
-383,7
+383,10
@@
redef class ModelBuilder
assert mtype isa MClassType
var sc = mtype.mclass
if not parents.has(sc) or sc == objectclass then
assert mtype isa MClassType
var sc = mtype.mclass
if not parents.has(sc) or sc == objectclass then
- warning(ntype, "Warning: superfluous super-class {mtype} in class {mclassdef.mclass}.")
+ # Skip the warning on generated code
+ if ntype.location.file != null and not ntype.location.file.filename.is_empty then
+ warning(ntype, "Warning: superfluous super-class {mtype} in class {mclassdef.mclass}.")
+ end
else if not seen_parents.has_key(sc) then
seen_parents[sc] = ntype
else
else if not seen_parents.has_key(sc) then
seen_parents[sc] = ntype
else