FE: add test to ensure Java entries static field is resolved normally
This commit is contained in:
committed by
Space Team
parent
905e1dcd3b
commit
78f4d399d4
@@ -0,0 +1,9 @@
|
||||
FILE: test.kt
|
||||
public final val entries: R|kotlin/Int| = Int(0)
|
||||
public get(): R|kotlin/Int|
|
||||
public final val somethingElse: R|kotlin/Int| = Int(1)
|
||||
public get(): R|kotlin/Int|
|
||||
public final fun test(): R|kotlin/Unit| {
|
||||
R|pkg/JEnumStaticField.entries*s|.R|kotlin/String.length|
|
||||
R|pkg/JEnumStaticField.somethingElse*s|.R|kotlin/String.length|
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: +EnumEntries -PrioritizedEnumEntries
|
||||
// WITH_STDLIB
|
||||
// FIR_DUMP
|
||||
|
||||
// FILE: pkg/JEnumStaticField.java
|
||||
|
||||
package pkg;
|
||||
|
||||
public enum JEnumStaticField {
|
||||
;
|
||||
|
||||
public static final String entries = "ENTRIES";
|
||||
public static final String somethingElse = "...";
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
import pkg.JEnumStaticField.entries
|
||||
import pkg.JEnumStaticField.somethingElse
|
||||
|
||||
val entries = 0
|
||||
val somethingElse = 1
|
||||
|
||||
fun test() {
|
||||
entries.length
|
||||
somethingElse.length
|
||||
}
|
||||
Reference in New Issue
Block a user