149daa173c
So #KT-16340 Fixed
14 lines
245 B
Kotlin
Vendored
14 lines
245 B
Kotlin
Vendored
// PROBLEM: none
|
|
|
|
class Test(val test: Int) {
|
|
fun foo() = test
|
|
}
|
|
|
|
// Receiver unused but still inapplicable (infix)
|
|
infix fun <caret>Test.build(x: Int) = Test(x * x)
|
|
|
|
|
|
fun main(args: Array<String>) {
|
|
val x = Test(0) build 7
|
|
x.foo()
|
|
} |