| // 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 */ |