20 lines
393 B
Kotlin
Vendored
20 lines
393 B
Kotlin
Vendored
// !LANGUAGE: -SoundSmartcastForEnumEntries
|
|
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
// SKIP_TXT
|
|
|
|
enum class Message(val text: String?) {
|
|
HELLO("hello"),
|
|
WORLD("world"),
|
|
NOTHING(null)
|
|
}
|
|
|
|
fun printMessages() {
|
|
Message.HELLO.text!!
|
|
Message.HELLO.text.length
|
|
|
|
Message.NOTHING.text.<!INAPPLICABLE_CANDIDATE!>length<!>
|
|
|
|
Message.NOTHING.text!!
|
|
Message.NOTHING.text.length
|
|
}
|