Diagnostic tests: create fieldRename subDir and use it for related tests
Related to: KT-55846, KT-50082, KT-55436, KT-55017
This commit is contained in:
committed by
Space Team
parent
35c0a3d391
commit
f6bd4d5e15
Vendored
+27
@@ -0,0 +1,27 @@
|
||||
// FILE: A.java
|
||||
|
||||
package base;
|
||||
|
||||
class A {
|
||||
public String f = "OK";
|
||||
}
|
||||
|
||||
// FILE: B.kt
|
||||
|
||||
package base
|
||||
|
||||
open class B : <!EXPOSED_SUPER_CLASS!>A()<!> {
|
||||
private val f = "FAIL"
|
||||
}
|
||||
|
||||
// FILE: C.java
|
||||
|
||||
import base.B;
|
||||
|
||||
public class C extends B {}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun box(): String {
|
||||
return C().f
|
||||
}
|
||||
Reference in New Issue
Block a user