Files
kotlin-fork/compiler/testData/diagnostics/tests/callableReference/constructorFromExtensionInClass.kt
T
Alexander Udalov c4b4fa750c Resolve callable reference expressions
#KT-1183 In Progress
2013-04-22 17:59:31 +04:00

20 lines
260 B
Kotlin

class A
class B {
fun A.ext() {
val x = ::A
val y = ::B
x : KFunction0<A>
y : KFunction0<B>
}
fun B.ext() {
val x = ::A
val y = ::B
x : KFunction0<A>
y : KFunction0<B>
}
}