mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
Basic reflection is usable without any imports (with :: literals)
This reverts commit 9503056dd5.
18 lines
317 B
Kotlin
18 lines
317 B
Kotlin
// FILE: a.kt
|
|
|
|
package a.b.c
|
|
|
|
class D<E, F> {
|
|
fun foo(<!UNUSED_PARAMETER!>e<!>: E, <!UNUSED_PARAMETER!>f<!>: F) = this
|
|
}
|
|
|
|
// FILE: b.kt
|
|
|
|
import kotlin.reflect.KMemberFunction2
|
|
|
|
fun main() {
|
|
val x = a.b.c.D<String, Int>::foo
|
|
|
|
x : KMemberFunction2<a.b.c.D<String, Int>, String, Int, a.b.c.D<String, Int>>
|
|
}
|