mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-18 08:31:38 +00:00
Add forgotten test files
This commit is contained in:
23
compiler/testData/codegen/bytecodeText/javaFields.kt
vendored
Normal file
23
compiler/testData/codegen/bytecodeText/javaFields.kt
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// FILE: Java1.java
|
||||
public class Java1 {
|
||||
public int f;
|
||||
}
|
||||
|
||||
// FILE: Java2.java
|
||||
public class Java2 extends Kotlin1 {
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
open class Kotlin1 : Java1()
|
||||
|
||||
open class Kotlin2 : Java2() {
|
||||
fun getF() = super.f
|
||||
}
|
||||
|
||||
fun test1(j: Kotlin2) = j.f
|
||||
|
||||
// @Kotlin2.class:
|
||||
// 1 GETFIELD Java2.f : I
|
||||
|
||||
// @TestKt.class:
|
||||
// 1 GETFIELD Kotlin2.f : I
|
||||
Reference in New Issue
Block a user