Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/rendering/notImplementedMembersAroundJava.kt
T
2021-08-24 12:32:30 +03:00

28 lines
799 B
Kotlin
Vendored

// FIR_IDENTICAL
// FULL_JDK
// ISSUE: KT-47542
// FILE: PlaceholderExceptionSupport.java
public interface PlaceholderExceptionSupport {
String getMessage();
}
// FILE: ExceptionWithAbstractMessage.java
public class ExceptionWithAbstractMessage extends RuntimeException implements PlaceholderExceptionSupport {
public ExceptionWithAbstractMessage(String x) { super(x); }
abstract String getMessage();
}
// FILE: PlaceholderException.java
public class PlaceholderException extends RuntimeException implements PlaceholderExceptionSupport {
public PlaceholderException(String x) { super(x); }
}
// FILE: main.kt
class KotlinTestSuccess : PlaceholderException("OK") {}
<!ABSTRACT_CLASS_MEMBER_NOT_IMPLEMENTED!>class KotlinTestFailure<!> : ExceptionWithAbstractMessage("FAIL") {}