Rename: jps-plugin -> jps/jps-plugin

This commit is contained in:
Nikita Bobko
2021-12-29 19:21:54 +01:00
parent d8f99d8974
commit db7472a376
2317 changed files with 0 additions and 0 deletions
@@ -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
@@ -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
@@ -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
------------------------------------------
@@ -0,0 +1,5 @@
import Enum.*
fun useBecameNullable(e: Enum) {
println(e.becameNullable.string())
}
@@ -0,0 +1,5 @@
import Enum.*
fun useBecameNullable(e: Enum) {
println(e.becameNullable?.string())
}
@@ -0,0 +1,5 @@
import Enum.*
fun useUnchanged(e: Enum) {
println(e.unchanged.string())
}