blob: 48c581b85184d436a3b1be164d5a73c3d3e29ed8 [file]
// RUN_PIPELINE_TILL: FRONTEND
import kotlin.jvm.*
<!EXTERNAL_DECLARATION_CANNOT_HAVE_BODY!>external<!> fun foo() {}
class C {
<!EXTERNAL_DECLARATION_CANNOT_HAVE_BODY!>external<!> fun foo() {}
companion object {
<!EXTERNAL_DECLARATION_CANNOT_HAVE_BODY!>external<!> fun foo() {}
}
}
object O {
<!EXTERNAL_DECLARATION_CANNOT_HAVE_BODY!>external<!> fun foo() {}
}
fun test() {
class Local {
<!EXTERNAL_DECLARATION_CANNOT_HAVE_BODY!>external<!> fun foo() {}
}
object {
<!EXTERNAL_DECLARATION_CANNOT_HAVE_BODY!>external<!> fun foo() {}
}
}
/* GENERATED_FIR_TAGS: anonymousObjectExpression, classDeclaration, companionObject, external, functionDeclaration,
localClass, objectDeclaration */