nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from:
264fd69
)
syntax: while condition can now cast variable
author
Jean Privat
<jean@pryen.org>
Mon, 22 Jun 2009 18:19:12 +0000
(14:19 -0400)
committer
Jean Privat
<jean@pryen.org>
Wed, 24 Jun 2009 19:48:18 +0000
(15:48 -0400)
Example:
var a = foo # foo gives a A
# Before the while, the base static type of a is set to A
while a isa B do
a.some_b_stuff # OK, since a isa B
a = foo # OK, since 'base' static type of a is A
end
Signed-off-by: Jean Privat <jean@pryen.org>
No differences found