13 lines
184 B
Kotlin
13 lines
184 B
Kotlin
import java.lang.annotation.ElementType
|
|
|
|
fun foo(e: ElementType) {
|
|
when(e) {
|
|
ElementType.FIELD -> x()
|
|
<caret>
|
|
}
|
|
}
|
|
|
|
// ABSENT: FIELD
|
|
// EXIST: TYPE
|
|
// ABSENT: e
|