From 75735a4d614beffa1536ae3e84c53803a18ba1ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Doln=C3=ADk?= Date: Thu, 16 May 2024 17:10:42 +0200 Subject: [PATCH] Fix enums nested in enums. --- .../skie/phases/features/enums/ExhaustiveEnumsGenerator.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SKIE/kotlin-compiler/core/src/commonMain/kotlin/co/touchlab/skie/phases/features/enums/ExhaustiveEnumsGenerator.kt b/SKIE/kotlin-compiler/core/src/commonMain/kotlin/co/touchlab/skie/phases/features/enums/ExhaustiveEnumsGenerator.kt index 75279f4a..2f314463 100644 --- a/SKIE/kotlin-compiler/core/src/commonMain/kotlin/co/touchlab/skie/phases/features/enums/ExhaustiveEnumsGenerator.kt +++ b/SKIE/kotlin-compiler/core/src/commonMain/kotlin/co/touchlab/skie/phases/features/enums/ExhaustiveEnumsGenerator.kt @@ -124,6 +124,8 @@ private fun SirClass.addNestedClassTypeAlias(nestedClass: SirClass) { SirTypeAlias( baseName = nestedClass.baseName, visibility = nestedClass.visibility, + isHidden = nestedClass.isHidden, + isReplaced = nestedClass.isReplaced, ) { nestedClass.defaultType }