Allow placing Suppress on a type parameter

#KT-12448
This commit is contained in:
Ilya Gorbunov
2020-04-02 07:28:36 +03:00
parent fcada0a5e3
commit 8194652793
10 changed files with 34 additions and 5 deletions
@@ -0,0 +1,4 @@
// FIR_IDENTICAL
class Final
fun <@Suppress("FINAL_UPPER_BOUND") T : Final> suppressTypeParameter() {}
@@ -0,0 +1,10 @@
package
public fun </*0*/ @kotlin.Suppress(names = {"FINAL_UPPER_BOUND"}) T : Final> suppressTypeParameter(): kotlin.Unit
public final class Final {
public constructor Final()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}