[FIR] Add EXPOSED_SUPER_(CLASS/INTERFACE) checker

This commit is contained in:
rapturemain
2020-04-23 18:53:59 +03:00
committed by Mikhail Glukhikh
parent ef09850df8
commit 49593d308c
27 changed files with 241 additions and 40 deletions
+2 -2
View File
@@ -2,11 +2,11 @@ private interface My
private open class Base
public interface Your: My {
public interface Your: <!EXPOSED_SUPER_INTERFACE!>My<!> {
fun <T: Base> foo(): T
}
public class Derived<T: My>(<!EXPOSED_PARAMETER_TYPE!>val <!EXPOSED_PROPERTY_TYPE!>x<!>: My<!>): Base() {
public class Derived<T: My>(<!EXPOSED_PARAMETER_TYPE!>val <!EXPOSED_PROPERTY_TYPE!>x<!>: My<!>): <!EXPOSED_SUPER_CLASS!>Base<!>() {
constructor(<!EXPOSED_PARAMETER_TYPE!>xx: My?<!>, <!EXPOSED_PARAMETER_TYPE!>x: My<!>): this(xx ?: x)