FIR: determine synthetic accessor modality more precisely

Related to KT-47542
This commit is contained in:
Mikhail Glukhikh
2021-08-23 15:24:52 +03:00
parent bbb76aae3f
commit 3f8734f694
3 changed files with 16 additions and 32 deletions
@@ -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") {}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// FULL_JDK
// ISSUE: KT-47542