conversions as wrappers; generate !! instead of sure() (for constructor calls only for now)

This commit is contained in:
Dmitry Jemerov
2012-05-24 21:03:24 +02:00
committed by Pavel V. Talanov
parent 37ea08c6a2
commit 512e12d26c
8 changed files with 83 additions and 31 deletions
+1 -1
View File
@@ -2,6 +2,6 @@ package demo
open class Test(i : Int) {
open fun test() : Unit {
var b : Byte = 10
Test((b).toInt())
Test(b.toInt())
}
}
+1 -1
View File
@@ -14,6 +14,6 @@ open fun putInt(i : Int) : Unit {
}
open fun test() : Unit {
putInt((One.myContainer?.myInt).sure())
IntContainer((One.myContainer?.myInt).sure())
IntContainer(One.myContainer?.myInt!!)
}
}