KT-3302 Method that implements two differing interfaces are reported as "Incompatible types in superclasses"
#KT-3302 fixed
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
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 trait Generic<T> : Object {
|
||||
public fun foo(p0: T)
|
||||
}
|
||||
|
||||
public trait Sub : NonGeneric, Generic<String> {
|
||||
override fun foo(p0: String)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user