KT-3302 Method that implements two differing interfaces are reported as "Incompatible types in superclasses"
#KT-3302 fixed
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
package test
|
||||
|
||||
public trait SubstitutedClassParameters: Object {
|
||||
|
||||
public trait Super1<T>: Object {
|
||||
public fun foo(p0: T)
|
||||
}
|
||||
|
||||
public trait Super2<E>: Object {
|
||||
public fun foo(p0: E)
|
||||
}
|
||||
|
||||
public trait Sub: Super1<String>, Super2<String> {
|
||||
override fun foo(p0: String)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user