Property <-> Function Conversion: Add/remove 'get'/'is' prefixes automatically
#KT-8812 Fixed
This commit is contained in:
+2
-2
@@ -3,11 +3,11 @@
|
||||
annotation class X(val s: String)
|
||||
|
||||
class A(val n: Int) {
|
||||
internal X("1") fun <T : Number> T.foo(): Boolean = toInt() - n > 1
|
||||
internal X("1") fun <T : Number> T.getFoo(): Boolean = toInt() - n > 1
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val t = with(A(1)) {
|
||||
2.5.foo()
|
||||
2.5.getFoo()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user