[FIR] Support for EXPOSED_TYPE_PARAMETER_BOUND
This commit is contained in:
committed by
Mikhail Glukhikh
parent
bfffcf6b23
commit
02aa11a0a0
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user