Fix KtUltraLightMethod::getParameterList
There's already a correct override in KtLightMethodImpl Otherwise the tests is failing because clsDelegate.parameterList has a wrong parent
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package test;
|
||||
|
||||
public class MyFunctionType {
|
||||
public void foo() {
|
||||
MyFunction<CharSequence, Integer> function1 = (CharSequence x) -> x.length();
|
||||
bar(x -> x.length());
|
||||
bar(CharSequence::length);
|
||||
}
|
||||
|
||||
public void bar(MyFunction<CharSequence, Integer> x) {}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
public interface MyFunction<in P1, out R> : Function<R> {
|
||||
public operator fun invoke(p1: P1): R
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
// LANGUAGE_LEVEL 1.8
|
||||
// WITH_RUNTIME
|
||||
Reference in New Issue
Block a user