[FIR] Fix incorrect context usages with withSuppressedDiagnostics call

This commit is contained in:
Dmitriy Novozhilov
2022-02-15 13:09:13 +03:00
committed by teamcity
parent ccb74b6477
commit b47cc86c57
23 changed files with 113 additions and 73 deletions
@@ -0,0 +1,7 @@
// FIR_IDENTICAL
class A {
@Suppress("NOTHING_TO_OVERRIDE")
override fun foo() {}
}
@@ -0,0 +1,9 @@
package
public final class A {
public constructor A()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
@kotlin.Suppress(names = {"NOTHING_TO_OVERRIDE"}) public open fun foo(): kotlin.Unit
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}