Rename: jps-plugin -> jps/jps-plugin
This commit is contained in:
+4
@@ -0,0 +1,4 @@
|
||||
public enum Enum {
|
||||
A,
|
||||
B
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
public enum Enum {
|
||||
A,
|
||||
B,
|
||||
C
|
||||
}
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/Enum.class
|
||||
End of files
|
||||
Exit code: NOTHING_DONE
|
||||
------------------------------------------
|
||||
Compiling files:
|
||||
src/Enum.java
|
||||
End of files
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/UseKt$WhenMappings.class
|
||||
out/production/module/UseKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/use.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
import java.util.Random
|
||||
|
||||
fun getRandomEnumEntry() =
|
||||
with (Enum.values()) {
|
||||
get(Random().nextInt(size))
|
||||
}
|
||||
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Compiling files:
|
||||
src/Enum.java
|
||||
src/getRandomEnumEntry.kt
|
||||
src/use.kt
|
||||
src/useEnumImplicitly.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
'when' expression must be exhaustive, add necessary 'C' branch or 'else' branch instead
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Compiling files:
|
||||
src/Enum.java
|
||||
src/getRandomEnumEntry.kt
|
||||
src/use.kt
|
||||
src/useEnumImplicitly.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
import Enum.*
|
||||
|
||||
fun use(e: Enum): String =
|
||||
when (e) {
|
||||
A -> "A"
|
||||
B -> "B"
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import Enum.*
|
||||
|
||||
fun use(e: Enum): String =
|
||||
when (e) {
|
||||
A -> "A"
|
||||
B -> "B"
|
||||
C -> "C"
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun useImplicit() {
|
||||
println(use(getRandomEnumEntry()))
|
||||
}
|
||||
Reference in New Issue
Block a user