[FIR] Properly approximate return type of callable declarations

- approximate intersection types in all non-local declarations
- approximate local types in non-private non-local declarations
This commit is contained in:
Dmitriy Novozhilov
2022-11-10 15:34:40 +02:00
committed by Space Team
parent 0f70635fcb
commit 01c6c7dc59
19 changed files with 190 additions and 230 deletions
@@ -70,13 +70,13 @@ public abstract interface I /* I*/ {
public final class InvalidPublicSupertype /* InvalidPublicSupertype*/ {
@org.jetbrains.annotations.NotNull()
private final java.lang.Object x;
private final java.lang.Runnable x;
@org.jetbrains.annotations.NotNull()
public final java.lang.Object bar();// bar()
public final java.lang.Runnable bar();// bar()
@org.jetbrains.annotations.NotNull()
public final java.lang.Object getX();// getX()
public final java.lang.Runnable getX();// getX()
public InvalidPublicSupertype();// .ctor()