blob: 6241a1367e732505eeda5e56634d3c72cc724409 [file]
// RUN_PIPELINE_TILL: CODEGEN
// ISSUE: KT-80399
// FILE: Base.java
public class Base {
@Deprecated
public void foo() {}
}
// FILE: main.kt
class Derived : Base() {
@Deprecated("Deprecated in Java")
override fun foo() {}
}
fun test() {
val newClass = object : Base() {
@Deprecated("Deprecated in Java")
override fun foo() {}
}
}
/* GENERATED_FIR_TAGS: anonymousObjectExpression, classDeclaration, functionDeclaration, javaType, localProperty,
override, propertyDeclaration, stringLiteral */