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
+12 -12
View File
@@ -62,43 +62,43 @@ fun t3() : Boolean {
}
fun t4() : Boolean {
var x = 100.float
var x = 100.toFloat()
val y = x + 22
val foo = {
x = x + 200.float + y
x = x + 200.toFloat() + y
x += 18
#()
}
foo()
System.out?.println(x)
return x == 440.float
return x == 440.toFloat()
}
fun t5() : Boolean {
var x = 100.double
var x = 100.toDouble()
val y = x + 22
val foo = {
x = x + 200.double + y
x = x + 200.toDouble() + y
x -= 22
#()
}
foo()
System.out?.println(x)
return x == 400.double
return x == 400.toDouble()
}
fun t6() : Boolean {
var x = 20.byte
var x = 20.toByte()
val y = x + 22
val foo = {
x = (x + 20.byte + y).byte
x = (x + 20.toByte() + y).toByte()
x += 2
x--
#()
}
foo()
System.out?.println(x)
return x == 83.byte
return x == 83.toByte()
}
fun t7() : Boolean {
@@ -113,17 +113,17 @@ fun t7() : Boolean {
}
fun t8() : Boolean {
var x = 20.short
var x = 20.toShort()
val foo = {
val bar = {
x = 30.short
x = 30.toShort()
#()
}
bar()
#()
}
foo()
return x == 30.short
return x == 30.toShort()
}
fun t9(var x: Int) : Boolean {