blob: 0ec9821d9252c0a8673ffbb0e34cc469aa45dcc4 [file]
// RUN_PIPELINE_TILL: FRONTEND
sealed class Foo(val value: String)
class Bar : Foo("OK")
sealed class WithPrivateConstructor private constructor(val x: Int) {
private constructor() : this(42)
}
object First : <!INVISIBLE_REFERENCE!>WithPrivateConstructor<!>() // error
object Second : <!INVISIBLE_REFERENCE!>WithPrivateConstructor<!>(0) // error
/* GENERATED_FIR_TAGS: classDeclaration, integerLiteral, objectDeclaration, primaryConstructor, propertyDeclaration,
sealed, secondaryConstructor, stringLiteral */