Generate IMPLICIT_NOTNULL for (nullability flexible type) -> (non-null type) implicit conversion.

This commit is contained in:
Dmitry Petrov
2016-08-18 19:00:32 +03:00
committed by Dmitry Petrov
parent 2b6171057e
commit 3614b0a06c
5 changed files with 30 additions and 13 deletions
@@ -0,0 +1,2 @@
fun test(): String =
System.getProperty("test")
@@ -0,0 +1,8 @@
IrFile /implicitCastOnPlatformType.kt
IrFunction public fun test(): kotlin.String
IrExpressionBody
BLOCK type=<no-type> hasResult=false operator=null
RETURN type=<no-type>
UNARY_OP operator=IMPLICIT_NOTNULL type=kotlin.String related=null
CALL .getProperty type=kotlin.String! operator=null
p0: LITERAL String type=kotlin.String value='test'