Use substituted return type for SAM adapeter of constructor

#KT-7282 Fixed
This commit is contained in:
Denis Zharkov
2015-07-17 12:38:44 +03:00
parent 97af85da9c
commit 58e7923218
4 changed files with 32 additions and 1 deletions
@@ -223,7 +223,7 @@ public class SingleAbstractMethodUtils {
@Nullable JetType returnType
) {
result.initialize(typeParameters, valueParameters, original.getVisibility());
result.setReturnType(result.getContainingDeclaration().getDefaultType());
result.setReturnType(returnType);
}
});
}