Intentions: function <-> property conversion
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// ERROR: Too many arguments for internal final fun foo(): kotlin.Boolean defined in A
|
||||
// SHOULD_FAIL_WITH: Call with arguments will be skipped: foo(2)
|
||||
class A(val n: Int) {
|
||||
fun <caret>foo(): Boolean = n > 1
|
||||
}
|
||||
|
||||
fun test() {
|
||||
val t = A(1).foo(2)
|
||||
}
|
||||
Reference in New Issue
Block a user