Rename: jps-plugin -> jps/jps-plugin
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
open class A {
|
||||
val x: Any = "A.x"
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
private open class A {
|
||||
val x: Any? = null
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
open class A {
|
||||
val x: Any? = null
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
class B : A()
|
||||
|
||||
fun Any.string() = this as String
|
||||
+76
@@ -0,0 +1,76 @@
|
||||
================ Step #1 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/A.class
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
End of files
|
||||
Marked as dirty by Kotlin:
|
||||
src/B.kt
|
||||
src/getA.kt
|
||||
src/getB.kt
|
||||
src/useA.kt
|
||||
src/useB.kt
|
||||
Exit code: ADDITIONAL_PASS_REQUIRED
|
||||
------------------------------------------
|
||||
Cleaning output files:
|
||||
out/production/module/B.class
|
||||
out/production/module/BKt.class
|
||||
out/production/module/GetAKt.class
|
||||
out/production/module/GetBKt.class
|
||||
out/production/module/META-INF/module.kotlin_module
|
||||
out/production/module/UseAKt.class
|
||||
out/production/module/UseBKt.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/B.kt
|
||||
src/getA.kt
|
||||
src/getB.kt
|
||||
src/useA.kt
|
||||
src/useB.kt
|
||||
End of files
|
||||
Exit code: ABORT
|
||||
------------------------------------------
|
||||
COMPILATION FAILED
|
||||
Cannot access 'A': it is private in file
|
||||
'public' subclass exposes its 'private-in-file' supertype A
|
||||
'public' function exposes its 'private-in-file' return type A
|
||||
Cannot access 'A': it is private in file
|
||||
Cannot access 'A': it is private in file
|
||||
Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Any?
|
||||
Cannot access 'x': it is invisible (private in a supertype) in 'B'
|
||||
Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Any?
|
||||
|
||||
================ Step #2 =================
|
||||
|
||||
Cleaning output files:
|
||||
out/production/module/A.class
|
||||
End of files
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
src/B.kt
|
||||
src/getA.kt
|
||||
src/getB.kt
|
||||
src/useA.kt
|
||||
src/useB.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?
|
||||
Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type Any?
|
||||
|
||||
================ Step #3 =================
|
||||
|
||||
Compiling files:
|
||||
src/A.kt
|
||||
src/B.kt
|
||||
src/getA.kt
|
||||
src/getB.kt
|
||||
src/useA.kt
|
||||
src/useB.kt
|
||||
End of files
|
||||
Exit code: OK
|
||||
------------------------------------------
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
fun getA() = A()
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
fun getB() = B()
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun useA() {
|
||||
getA().x.string()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun useA() {
|
||||
getA().x?.string()
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
fun useB() {
|
||||
getB().x.string()
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun useB() {
|
||||
getB().x?.string()
|
||||
}
|
||||
Reference in New Issue
Block a user