PSI2IR: Generate IMPLICIT_NOTNULL casts for platform type values

This commit is contained in:
Dmitry Petrov
2019-11-22 14:15:08 +03:00
parent dabf6376db
commit 20fb519f1a
25 changed files with 264 additions and 49 deletions
@@ -0,0 +1,15 @@
// FILE: implicitNotNullInDestructuringAssignment.kt
// NB extension receiver is nullable
operator fun J?.component1() = 1
private operator fun J.component2() = 2
fun test() {
val (a, b) = J.j()
}
// FILE: J.java
public class J {
public static J j() { return null; }
}