Files
kotlin-fork/idea/testData/checker/Properties.jet
T
Alex Tkachman 53bba59a4f dbl -> toDouble
2012-02-22 13:14:41 +02:00

29 lines
581 B
Plaintext

var x : Int = 1 + x
get() : Int = 1
set(value : <error>Long</error>) {
$x = value.toInt()
$x = <error>1.toLong()</error>
}
val xx : Int = <error>1 + x</error>
get() : Int = 1
<error>set(value : <error>Long</error>) {}</error>
val p : Int = <error>1</error>
get() = 1
class Test() {
var a : Int = 111
var b : Int get() = $a; set(x) {a = x; $a = x}
this(i : Int) : this() {
<error>$b</error> = $a
$a = <error>$b</error>
a = <error>$b</error>
}
fun f() {
<error>$b</error> = $a
a = <error>$b</error>
}
}