KT-2069 Cannot call super method when superclass has type parameters
#KT-2069 fixed
This commit is contained in:
@@ -473,10 +473,11 @@ public class WritableScopeImpl extends WritableScopeWithImports {
|
||||
public void getImplicitReceiversHierarchy(@NotNull List<ReceiverDescriptor> result) {
|
||||
checkMayRead();
|
||||
|
||||
if (implicitReceiver != null && implicitReceiver.exists()) {
|
||||
result.add(implicitReceiver);
|
||||
}
|
||||
super.getImplicitReceiversHierarchy(result);
|
||||
|
||||
if (implicitReceiver != null && implicitReceiver.exists()) {
|
||||
result.add(0, implicitReceiver);
|
||||
}
|
||||
}
|
||||
|
||||
// @SuppressWarnings({"NullableProblems"})
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
//KT-2069 Cannot call super method when superclass has type parameters
|
||||
package kt2069
|
||||
|
||||
trait T1 {
|
||||
fun foo() {}
|
||||
}
|
||||
|
||||
class T : T1 {
|
||||
fun bar() {
|
||||
super<T1>.foo()
|
||||
}
|
||||
|
||||
class object {}
|
||||
}
|
||||
Reference in New Issue
Block a user