Rename: jps-plugin -> jps/jps-plugin
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
enum class Enum(x: String) {
|
||||
A("a"),
|
||||
B("b");
|
||||
|
||||
val becameNullable: Any = x
|
||||
val unchanged: Any = x
|
||||
}
|
||||
|
||||
fun Any.string() = this as String
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
enum class Enum(x: String) {
|
||||
A("a"),
|
||||
B("b");
|
||||
|
||||
val becameNullable: Any? = x
|
||||
val unchanged: Any = x
|
||||
}
|
||||
|
||||
fun Any.string() = this as String
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/Enum.class
|
||||
out/production/module/EnumKt.class
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
End of files
|
||||
Compiling files:
|
||||
src/Enum.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/useBecameNullable.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/UseBecameNullableKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/useBecameNullable.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Any?
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/Enum.class
|
||||
out/production/module/EnumKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/Enum.kt
|
||||
src/useBecameNullable.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
import Enum.*
|
||||
|
||||
fun useBecameNullable(e: Enum) {
|
||||
println(e.becameNullable.string())
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import Enum.*
|
||||
|
||||
fun useBecameNullable(e: Enum) {
|
||||
println(e.becameNullable?.string())
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
import Enum.*
|
||||
|
||||
fun useUnchanged(e: Enum) {
|
||||
println(e.unchanged.string())
|
||||
}
|
||||
Reference in New Issue
Block a user