blob: 999a0029daf3c6964c0b2ce8d7e61b90f4a261c1 [file]
// RUN_PIPELINE_TILL: FRONTEND
// DIAGNOSTICS: -UNUSED_VARIABLE
enum class Message(val text: String?) {
HELLO("hello"),
WORLD("world"),
NOTHING(null)
}
fun printMessages() {
Message.HELLO.text!!
Message.HELLO.text.length
Message.NOTHING.text<!UNSAFE_CALL!>.<!>length
Message.NOTHING.text!!
Message.NOTHING.text.length
}
/* GENERATED_FIR_TAGS: checkNotNullCall, enumDeclaration, enumEntry, functionDeclaration, nullableType,
primaryConstructor, propertyDeclaration, smartcast */