From bdfefc156ce2206194da5f7cb999f054f42a37b0 Mon Sep 17 00:00:00 2001 From: Alexander Ioffe Date: Wed, 17 Jul 2024 19:18:30 -0400 Subject: [PATCH] Switching back to FullName_M will crash it! --- .../kotlin/io/decomat/examples/customPatternData2/Data.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decomat-examples/src/commonMain/kotlin/io/decomat/examples/customPatternData2/Data.kt b/decomat-examples/src/commonMain/kotlin/io/decomat/examples/customPatternData2/Data.kt index f79ebd6..53c706c 100644 --- a/decomat-examples/src/commonMain/kotlin/io/decomat/examples/customPatternData2/Data.kt +++ b/decomat-examples/src/commonMain/kotlin/io/decomat/examples/customPatternData2/Data.kt @@ -29,7 +29,7 @@ object FirstLast { fun blahblah(first: Pattern0, last: Pattern0) = customPattern2(first, last) { it: Name -> on(it).matchOne( - case(FullName_MM(Is("foo"), Is("bar"))).then { first, last -> Components2(first, last) } + case(FullName_M(Is("foo"), Is("bar"))).then { first, last -> Components2(first, last) } // case(FullName.getget(Is(), Is())).then { first, last -> Components2(first, last) }//, // case(SimpleName[Is(), Is()]).then { first, last -> Components2(first, last) } )