10 lines
189 B
Kotlin
Vendored
10 lines
189 B
Kotlin
Vendored
class Inv<T>
|
|
|
|
inline operator fun <reified T> Inv<T>.invoke() {}
|
|
|
|
operator fun <K> Inv<K>.get(i: Int): Inv<K> = this
|
|
|
|
fun <K> test(a: Inv<K>) {
|
|
<!TYPE_PARAMETER_AS_REIFIED!>a[1]()<!>
|
|
}
|