Add test to check that name field in Java enum is not constant
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: +IntrinsicConstEvaluation
|
||||
|
||||
// FILE: CompressionType.java
|
||||
public enum CompressionType {
|
||||
OK("NOT OK");
|
||||
|
||||
public final String name;
|
||||
CompressionType(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: main.kt
|
||||
const val name = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>CompressionType.OK.name<!>
|
||||
Reference in New Issue
Block a user