From 4a4f79e168bae1f62af5ee909d65a1a78907ffd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Doln=C3=ADk?= Date: Thu, 30 May 2024 15:29:02 +0200 Subject: [PATCH] Fix escaping of keywords in names of nested types. --- .../kotlin/io/outfoxx/swiftpoet/ParameterizedTypeName.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SKIE/kotlin-compiler/core/src/commonMain/kotlin/io/outfoxx/swiftpoet/ParameterizedTypeName.kt b/SKIE/kotlin-compiler/core/src/commonMain/kotlin/io/outfoxx/swiftpoet/ParameterizedTypeName.kt index ccf71472..09b6bf4e 100644 --- a/SKIE/kotlin-compiler/core/src/commonMain/kotlin/io/outfoxx/swiftpoet/ParameterizedTypeName.kt +++ b/SKIE/kotlin-compiler/core/src/commonMain/kotlin/io/outfoxx/swiftpoet/ParameterizedTypeName.kt @@ -72,7 +72,7 @@ class ParameterizedTypeName internal constructor( else -> { if (enclosingType != null) { enclosingType.emit(out) - out.emit("." + rawType.simpleName) + out.emit("." + escapeKeywords(rawType.simpleName)) } else { rawType.emit(out) }