blob: 124aed7f01df41020f13160bc247b33030397fff [file]
// RUN_PIPELINE_TILL: FRONTEND
// LANGUAGE: +DataClassCopyRespectsConstructorVisibility
<!INCOMPATIBLE_MODIFIERS!>sealed<!> <!INCOMPATIBLE_MODIFIERS!>data<!> class My(val x: Int) {
object Your: My(1)
class His(y: Int): My(y)
}
/* GENERATED_FIR_TAGS: classDeclaration, data, integerLiteral, nestedClass, objectDeclaration, primaryConstructor,
propertyDeclaration, sealed */