Files
kotlin-fork/compiler/testData/diagnostics/tests/override/SuspiciousCase1.kt
T
2015-05-12 19:43:17 +02:00

13 lines
260 B
Kotlin
Vendored

// NamedFunctionDescriptor.substitute substitutes "overrides"
// this test checks it does it properly
interface Foo<P> {
fun quux(p: P, q: Int = 17) : Int = 18
}
interface Bar<Q> : Foo<Q>
abstract class Baz() : Bar<String>
fun zz(b: Baz) = b.quux("a")