FIR: enhance Java super types

This commit is contained in:
pyos
2021-08-12 20:40:32 +02:00
committed by teamcityserver
parent 03304bce96
commit 2847de10ac
5 changed files with 19 additions and 21 deletions
@@ -40,15 +40,15 @@ public class CKN extends C<@Nullable CK> {}
// FILE: main.kt
fun main(ak: AK, akn: AKN, bk: BK, ck: CK, ckn: CKN): Unit {
ak.foo(ak)
ak.foo(null)
ak.foo(<!NULL_FOR_NONNULL_TYPE!>null<!>)
akn.foo(null) // the corresponding warning/error is present on the Java side
bk.foo(bk)
bk.foo(null)
bk.foo(<!NULL_FOR_NONNULL_TYPE!>null<!>)
ck.foo(ck)
ck.foo(null)
ck.foo(<!NULL_FOR_NONNULL_TYPE!>null<!>)
ckn.foo(null) // the corresponding warning/error is present on the Java side
}