PSI2IR: support SAM conversion to substituted types

i.e. in arguments to `f(T x)` where `T` is a type parameter bound to a
SAM type.
This commit is contained in:
pyos
2020-04-29 13:20:17 +02:00
committed by Dmitry Petrov
parent d9fd51c608
commit df4f1365ec
6 changed files with 45 additions and 3 deletions
@@ -15803,6 +15803,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/javaInterop/protectedField.kt");
}
@TestMetadata("samTypeParameter.kt")
public void testSamTypeParameter() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/samTypeParameter.kt");
}
@TestMetadata("samUnboundTypeParameter.kt")
public void testSamUnboundTypeParameter() throws Exception {
runTest("compiler/testData/codegen/box/javaInterop/samUnboundTypeParameter.kt");