[FIR] Support for EXPOSED_TYPE_PARAMETER_BOUND

This commit is contained in:
rapturemain
2020-04-30 00:25:22 +03:00
committed by Mikhail Glukhikh
parent bfffcf6b23
commit 02aa11a0a0
8 changed files with 161 additions and 7 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ 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<!>): <!EXPOSED_SUPER_CLASS!>Base<!>() {
public class Derived<T: <!EXPOSED_TYPE_PARAMETER_BOUND!>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)
@@ -9,7 +9,7 @@ abstract class Your {
interface His: <!EXPOSED_SUPER_INTERFACE!>List<My><!>
// invalid, My is internal
interface Generic<E: My>
interface Generic<E: <!EXPOSED_TYPE_PARAMETER_BOUND!>My<!>>
interface Our {
// invalid, Generic<My> is effectively internal