mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
'const val' are now considered constants by Java in IDEA
#KT-12026 Fixed
This commit is contained in:
12
idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/UseKotlinConstInSwitch.java
vendored
Normal file
12
idea/testData/kotlinAndJavaChecker/javaAgainstKotlin/UseKotlinConstInSwitch.java
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
public class UseKotlinConstInSwitch {
|
||||
public static void main(int i) {
|
||||
switch (i) {
|
||||
case a.UseKotlinConstInSwitchKt.i:
|
||||
System.out.println("1");
|
||||
break;
|
||||
default:
|
||||
System.out.println("2");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user