From 5162c3e8f8ba3c53efd625463a8a9c8fa501249b Mon Sep 17 00:00:00 2001 From: Jon Pretty Date: Mon, 16 Sep 2024 16:26:29 +0100 Subject: [PATCH] Avoid issue with duplicate error about insertion of `Nothing` --- src/core/guillotine.Sh.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/guillotine.Sh.scala b/src/core/guillotine.Sh.scala index f784810..bda3d79 100644 --- a/src/core/guillotine.Sh.scala +++ b/src/core/guillotine.Sh.scala @@ -120,6 +120,7 @@ object Sh: case (State(context, _, more :+ current), char) => State(context, false, more :+ t"$current$char") + given Insertion[Parameters, Nothing] = value => Parameters(t"") given Insertion[Parameters, Text] = value => Parameters(value) given Insertion[Parameters, List[Text]] = xs => Parameters(xs*) given Insertion[Parameters, Command] = command => Parameters(command.arguments*)