Resolve for 'for' and 'while', 'do..while' pending

This commit is contained in:
Andrey Breslav
2011-03-17 14:43:00 +03:00
parent fd7abde114
commit 1c36c9be16
9 changed files with 206 additions and 71 deletions
+15
View File
@@ -17,3 +17,18 @@
val x : `C.B`B
}
fun test() : Unit {
for (~i~i in 1..2) {
`i`i`:std::Int`
}
for (val ~j~j in 1..2) {
`j`j`:std::Int`
}
for (val ~k~k : Int in 1..2) {
`k`k`:std::Int`
}
for (~l~l : Int in 1..2) {
`l`l`:std::Int`
}
}