nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
icode: ITypeCheck requires a receiver
[nit.git]
/
src
/
icode
/
icode_base.nit
diff --git
a/src/icode/icode_base.nit
b/src/icode/icode_base.nit
index
09c966b
..
b2c67f0
100644
(file)
--- a/
src/icode/icode_base.nit
+++ b/
src/icode/icode_base.nit
@@
-456,15
+456,16
@@
class IAttrIsset
end
# A type check
end
# A type check
-# expr is the expression checked
+# expr1 is the type reciever (self)
+# expr2 is the expression checked
class ITypeCheck
class ITypeCheck
- super ICode1
+ super ICode2
# The static type checkes to
readable var _stype: MMType
# The static type checkes to
readable var _stype: MMType
- init(e: IRegister, t: MMType)
+ init(e1, e2: IRegister, t: MMType)
do
do
- super(e)
+ super(e1, e2)
_stype = t
end
_stype = t
end