Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/sam.kt
T
2020-03-19 09:51:01 +03:00

15 lines
162 B
Kotlin
Vendored

interface MySam {
fun run(x: String): Int
}
class A {
fun bar(x: String): Int {}
}
fun foo(x: MySam) {}
fun main() {
val a = A()
foo(a::bar)
}