work in progress on codegen rewrite (no boxing for primitive types)

This commit is contained in:
Dmitry Jemerov
2011-03-28 14:14:41 +02:00
parent d05066f8f5
commit 739fce330c
10 changed files with 194 additions and 83 deletions
+5
View File
@@ -0,0 +1,5 @@
fun f(): Int {
var x: Int = 1
x = x + 1
return x
}
+1
View File
@@ -0,0 +1 @@
fun foo(b: Boolean): Int { return if (b) 15 else 20 }
+4
View File
@@ -0,0 +1,4 @@
fun foo(b: Boolean) : Int {
if (b) return 15;
return 20;
}
View File