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
@@ -16,7 +16,7 @@ fun bbb() {
fun foo(<warning>expr</warning>: StringBuilder): Int {
val c = 'a'
when(c) {
0.char -> throw Exception("zero")
0.toChar() -> throw Exception("zero")
else -> throw Exception("nonzero" + c)
}
}
+2 -2
View File
@@ -1,8 +1,8 @@
var x : Int = 1 + x
get() : Int = 1
set(value : <error>Long</error>) {
$x = value.int
$x = <error>1.long</error>
$x = value.toInt()
$x = <error>1.toLong()</error>
}
val xx : Int = <error>1 + x</error>