nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
877a8cc
)
typing: generalize warning on useless type tests.
author
Jean Privat
<jean@pryen.org>
Thu, 24 Jul 2014 18:03:54 +0000
(14:03 -0400)
committer
Jean Privat
<jean@pryen.org>
Thu, 24 Jul 2014 18:37:23 +0000
(14:37 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/typing.nit
patch
|
blob
|
history
diff --git
a/src/typing.nit
b/src/typing.nit
index
2a21437
..
9cd96c6
100644
(file)
--- a/
src/typing.nit
+++ b/
src/typing.nit
@@
-191,7
+191,7
@@
private class TypeVisitor
if sup == sub then
self.modelbuilder.warning(node, "Warning: Expression is already a {sup}.")
- else if self.is_subtype(sub, sup) and not sup.need_anchor then
+ else if self.is_subtype(sub, sup) then
self.modelbuilder.warning(node, "Warning: Expression is already a {sup} since it is a {sub}.")
end
return sup