[FIR2IR] Replace star projections with upper bounds for SAM conversion types

This commit is contained in:
Dmitriy Novozhilov
2021-03-18 12:48:28 +03:00
parent 50f2666eba
commit 7dc3be3b9b
10 changed files with 70 additions and 20 deletions
@@ -0,0 +1,26 @@
// TARGET_BACKEND: JVM
// FULL_JDK
// FILE: ConventionMapping.java
import java.util.concurrent.Callable;
public class ConventionMapping {
MappedProperty map(String propertyName, Callable<?> value) {
return new MappedProperty();
}
public static class MappedProperty {
}
}
// FILE: FileCollection.java
public class FileCollection {}
// FILE: test.kt
fun test(mapping: ConventionMapping, fn: () -> FileCollection) {
mapping.map("classpath", fn)
}
fun box(): String = "OK"