dbl -> toDouble
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user