mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
22 lines
503 B
Kotlin
22 lines
503 B
Kotlin
package test
|
|
|
|
// Extracted from KT-3302, see Kt3302 test, as well
|
|
public trait SubclassFromGenericAndNot: Object {
|
|
|
|
public trait NonGeneric : Object {
|
|
public fun foo(p0: String)
|
|
|
|
public fun dummy() // to avoid loading as SAM interface
|
|
}
|
|
|
|
public trait Generic<T> : Object {
|
|
public fun foo(key: T)
|
|
|
|
public fun dummy() // to avoid loading as SAM interface
|
|
}
|
|
|
|
public trait Sub : NonGeneric, Generic<String> {
|
|
override fun foo(key: String)
|
|
}
|
|
}
|