Tests for basic control flow structures

This commit is contained in:
Andrey Breslav
2011-04-04 21:11:15 +04:00
parent 1fc134072c
commit fee824bd78
20 changed files with 570 additions and 431 deletions
+22 -2
View File
@@ -1,3 +1,23 @@
fun f(a : Boolean) {
fun f(a : Boolean) : Unit {
1
a
}
2.lng
foo(a, 3)
genfun<Any>()
flfun {1}
3.equals(4)
3 equals 4
1 + 2
a && true
a || false
}
fun foo(a : Boolean, b : Int) : Unit {}
fun genfun<T>() : Unit {}
fun flfun(f : {() : Any}) : Unit {}