K2: Fix current behavior for KT-37375 and KT-58943
This commit is contained in:
committed by
Space Team
parent
f37dc27974
commit
acb1859154
+17
@@ -0,0 +1,17 @@
|
||||
// ISSUE: KT-37375
|
||||
|
||||
val foo: Any = Any()
|
||||
|
||||
fun bar() {
|
||||
operator fun Any.invoke(): String = ""
|
||||
|
||||
fun baz() {
|
||||
operator fun Any.invoke(): Int = 1
|
||||
|
||||
fun barbaz() {
|
||||
takeInt(foo())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun takeInt(x: Int) {}
|
||||
Reference in New Issue
Block a user