[K2] isUsedAsExpression analysis
This commit is contained in:
committed by
teamcity
parent
d9701c71b7
commit
f765457e51
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
class C {
|
||||
|
||||
<expr>var property: Int = 58
|
||||
get() {
|
||||
return field * 2
|
||||
}
|
||||
set(value) {
|
||||
field += 45
|
||||
}</expr>
|
||||
|
||||
}
|
||||
|
||||
fun main() {
|
||||
val c = C()
|
||||
c.property -= 20
|
||||
println(C().property)
|
||||
}
|
||||
Reference in New Issue
Block a user