[IR] Introduce & use DescriptorBasedIr OptIn

This commit is contained in:
Mikhail Glukhikh
2020-06-04 18:42:52 +03:00
parent 67158caf73
commit 7a0f986823
10 changed files with 62 additions and 2 deletions
@@ -179,6 +179,7 @@ abstract class AbstractIrTextTestCase : AbstractIrGeneratorTestCase() {
element.acceptChildrenVoid(this)
}
@OptIn(DescriptorBasedIr::class)
override fun visitDeclaration(declaration: IrDeclaration) {
if (declaration is IrSymbolOwner) {
declaration.symbol.checkBinding("decl", declaration)