Lowering for constructors & initializers.

This commit is contained in:
Dmitry Petrov
2016-09-26 10:15:33 +03:00
parent 6d575c1437
commit 7950235df3
20 changed files with 484 additions and 53 deletions
+15
View File
@@ -0,0 +1,15 @@
fun <T> assertEquals(actual: T, expected: T) {
if (actual != expected) {
throw java.lang.AssertionError("Assertion failed: $actual != $expected")
}
}
val x = 1
val y = x + 1
fun box(): String {
assertEquals(x, 1)
assertEquals(y, 2)
return "OK"
}