dbl -> toDouble

This commit is contained in:
Alex Tkachman
2012-02-22 13:14:41 +02:00
parent 18990e2c1b
commit 53bba59a4f
79 changed files with 335 additions and 298 deletions
@@ -4,8 +4,8 @@ open fun putInt(i : Int?) : Unit {
}
open fun test() : Unit {
var b : Byte = 10
putInt((b).int)
putInt((b).toInt())
var b2 : Byte? = 10
putInt((b2).int)
putInt((b2).toInt())
}
}
+1 -1
View File
@@ -4,6 +4,6 @@ open fun putInt(i : Int) : Unit {
}
open fun test() : Unit {
var b : Byte = 10
putInt((b).int)
putInt((b).toInt())
}
}
+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).int)
Test((b).toInt())
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
open class Test() {
open fun getInt() : Int {
var b : Byte = 10
return b.int
return b.toInt()
}
}
@@ -8,5 +8,5 @@ var myContainer : Container? = Container()
}
}
open class Test() {
var b : Byte = One.myContainer?.myInt.sure().byte
var b : Byte = One.myContainer?.myInt.sure().toByte()
}
+1 -1
View File
@@ -9,6 +9,6 @@ var myContainer : Container? = Container()
}
open class Test() {
open fun test() : Unit {
var b : Byte = One.myContainer?.myInt.sure().byte
var b : Byte = One.myContainer?.myInt.sure().toByte()
}
}