conversions as wrappers; generate !! instead of sure() (for constructor calls only for now)
This commit is contained in:
committed by
Pavel V. Talanov
parent
37ea08c6a2
commit
512e12d26c
@@ -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())
|
||||
}
|
||||
}
|
||||
@@ -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!!)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user