FIR: determine synthetic accessor modality more precisely
Related to KT-47542
This commit is contained in:
Vendored
-27
@@ -1,27 +0,0 @@
|
||||
// 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") {}
|
||||
|
||||
class KotlinTestFailure : ExceptionWithAbstractMessage("FAIL") {}
|
||||
Vendored
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// FULL_JDK
|
||||
// ISSUE: KT-47542
|
||||
|
||||
|
||||
Reference in New Issue
Block a user