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:
Denis Zharkov
2018-10-30 17:56:00 +03:00
parent 3814c7687b
commit 875e9d2a36
8 changed files with 52 additions and 3 deletions
@@ -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