nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e1eef8
)
model: make `MPropDef::is_intro` more robust
author
Jean Privat
<jean@pryen.org>
Tue, 6 Oct 2015 15:50:59 +0000
(11:50 -0400)
committer
Jean Privat
<jean@pryen.org>
Tue, 6 Oct 2015 15:50:59 +0000
(11:50 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>
src/model/model.nit
patch
|
blob
|
history
diff --git
a/src/model/model.nit
b/src/model/model.nit
index
8d6bf7a
..
941bae7
100644
(file)
--- a/
src/model/model.nit
+++ b/
src/model/model.nit
@@
-2301,7
+2301,7
@@
abstract class MPropDef
redef var to_s: String is noinit
# Is self the definition that introduce the property?
- fun is_intro: Bool do return mproperty.intro == self
+ fun is_intro: Bool do return isset mproperty._intro and mproperty.intro == self
# Return the next definition in linearization of `mtype`.
#