mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
9 lines
204 B
Kotlin
Vendored
9 lines
204 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
class GenericClass<out T>(val value: T) {
|
|
public fun <P> foo(extension: T.() -> P) {}
|
|
}
|
|
|
|
public fun <E> GenericClass<List<E>>.bar() {
|
|
foo( { listIterator() })
|
|
} |