260c549cd7
and `KotlinNullabilityUAnnotation` now is created for every `AbstractKotlinUVariable`
28 lines
656 B
Plaintext
Vendored
28 lines
656 B
Plaintext
Vendored
public final class WhenStringLiteralKt {
|
|
@org.jetbrains.annotations.Nullable private static final var a: java.lang.String = readLine()
|
|
@org.jetbrains.annotations.NotNull private static final var b: int = switch (a) {
|
|
"abc" -> {
|
|
1
|
|
break
|
|
}
|
|
|
|
"def", "ghi" -> {
|
|
2
|
|
break
|
|
}
|
|
|
|
-> {
|
|
3
|
|
break
|
|
}
|
|
|
|
}
|
|
|
|
public static final fun getA() : java.lang.String = UastEmptyExpression
|
|
public static final fun getB() : int = UastEmptyExpression
|
|
public static final fun <no name provided>() : void {
|
|
"abc1"
|
|
"def1"
|
|
}
|
|
}
|