FIR2IR: support substitution for SAM types

This commit is contained in:
Mikhail Glukhikh
2021-02-10 17:13:30 +03:00
parent 7050af9b79
commit 346ffb3acf
10 changed files with 57 additions and 39 deletions
@@ -1,8 +1,8 @@
fun test1(f: Function1<String, String>): C<String?> {
return C<String?>(jxx = f /*-> J<X?, X?>? */)
return C<String?>(jxx = f /*-> J<String?, String?>? */)
}
fun test2(x: Any) {
x as Function1<String, String> /*~> Unit */
C<String?>(jxx = x /*as Function1<String, String> */ /*-> J<X?, X?>? */) /*~> Unit */
C<String?>(jxx = x /*as Function1<String, String> */ /*-> J<String?, String?>? */) /*~> Unit */
}