Files
kotlin/plugins/scripting/scripting-compiler/testData/compiler/nullable_projection.kts
Ilya Chernikov d863dc04e6 Move compiler scripting tests to scripting plugin, remove unused funs
also remove some tests that are covered in the scripting-compiler
tests now.
Part of the cleanup to rewrite scripting to the new infrastructure.
2020-04-13 13:49:34 +02:00

5 lines
156 B
Kotlin
Vendored

import java.lang.RuntimeException
val v: String? = param[0]
if (v == null) System.out.println("nullable") else RuntimeException("non nullable projection")