Save annotations of lambda on SAM's method

Also add tests checking that annotations on 'invoke' methods of common lambdas are saved properly

 #KT-6932 Fixed
This commit is contained in:
Denis Zharkov
2015-05-12 10:45:06 +03:00
parent e078eaf15b
commit e98b9ea84e
9 changed files with 180 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
import java.lang.Runnable;
class Test {
public static Class<?> apply(Runnable x) {
return x.getClass();
}
public static interface ABC {
void apply(String x1, String x2);
}
public static Class<?> applyABC(ABC x) {
return x.getClass();
}
}