Intentions: function <-> property conversion

This commit is contained in:
Alexey Sedunov
2015-01-28 13:58:40 +03:00
parent 15ebbdb349
commit 03e076aba3
87 changed files with 1488 additions and 54 deletions
@@ -0,0 +1,15 @@
// WITH_RUNTIME
annotation class X(val s: String)
class A(val n: Int) {
val t = 1
internal X("1") fun <T : Number> T.<caret>foo(): Boolean = toInt() - n > 1
val u = 2
}
fun test() {
val t = with(A(1)) {
2.5.foo()
}
}