Supported simplest cases of SAM adapter in backend.

This commit is contained in:
Evgeny Gerashchenko
2013-04-16 19:17:46 +04:00
parent c5b9c6a7dc
commit 7bd11718de
9 changed files with 99 additions and 6 deletions
@@ -134,7 +134,7 @@ public class SingleAbstractMethodUtils {
return result;
}
private static boolean isSamType(@NotNull JetType type) {
public static boolean isSamType(@NotNull JetType type) {
ClassifierDescriptor classifier = type.getConstructor().getDeclarationDescriptor();
return classifier instanceof ClassDescriptorFromJvmBytecode &&
((ClassDescriptorFromJvmBytecode) classifier).isSamInterface() &&