Don't expand types that don't contain type aliases or type parameters.
This commit is contained in:
+2
-2
@@ -5,8 +5,8 @@ class TColl<T, C : Collection<T>>
|
||||
typealias TCErr = TColl<String, <!UPPER_BOUND_VIOLATED!>Any<!>>
|
||||
typealias TCErr2 = TCErr
|
||||
|
||||
fun testType1(x: <!UPPER_BOUND_VIOLATED_IN_TYPEALIAS_EXPANSION!>TCErr<!>) {}
|
||||
fun testType1(x: TCErr) {}
|
||||
val testCtor1 = <!UPPER_BOUND_VIOLATED_IN_TYPEALIAS_EXPANSION!>TCErr()<!>
|
||||
|
||||
fun testType2(x: <!UPPER_BOUND_VIOLATED_IN_TYPEALIAS_EXPANSION!>TCErr2<!>) {}
|
||||
fun testType2(x: TCErr2) {}
|
||||
val testCtor2 = <!UPPER_BOUND_VIOLATED_IN_TYPEALIAS_EXPANSION!>TCErr2()<!>
|
||||
|
||||
Reference in New Issue
Block a user