Recompile all enum usages when new entry is added
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
enum class Enum(x: String) {
|
||||
A("a"),
|
||||
B("b");
|
||||
|
||||
val becameNullable: Any = x
|
||||
val unchanged: Any = x
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
enum class Enum(x: String) {
|
||||
A("a"),
|
||||
B("b");
|
||||
|
||||
val becameNullable: Any? = x
|
||||
val unchanged: Any = x
|
||||
}
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
Cleaning output files:
|
||||
out/production/module/Enum.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/Enum.kt
|
||||
End of files
|
||||
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
|
||||
COMPILATION FAILED
|
||||
Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type kotlin.Any?
|
||||
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/Enum.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/Enum.kt
|
||||
src/useBecameNullable.kt
|
||||
End of files
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
import Enum.*
|
||||
|
||||
fun useBecameNullable(e: Enum) {
|
||||
println(e.becameNullable.hashCode())
|
||||
}
|
||||
Vendored
+5
@@ -0,0 +1,5 @@
|
||||
import Enum.*
|
||||
|
||||
fun useBecameNullable(e: Enum) {
|
||||
println(e.becameNullable?.hashCode())
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
import Enum.*
|
||||
|
||||
fun useUnchanged(e: Enum) {
|
||||
println(e.unchanged.hashCode())
|
||||
}
|
||||
Reference in New Issue
Block a user