Files
kotlin-fork/compiler/testData/diagnostics/tests/enum/javaEnumWithAbstractFun.kt
T
Vyacheslav Gerasimov bcefa68df0 Always checkout/checkin text files with lf endings
Different line endings on linux/windows prevents gradle from reusing
build cache since endings make task inputs completely different between
systems
2020-03-18 22:33:15 +03:00

18 lines
252 B
Kotlin
Vendored

// FIR_IDENTICAL
// !CHECK_TYPE
// FILE: A.java
public enum A {
ENTRY {
public String s() {
return "s";
}
};
public abstract String s();
}
// FILE: test.kt
fun main() {
checkSubtype<String?>(A.ENTRY.s())
}