From 47f877b7e3ce5d29e460a8155fbfb8f3fdc16cde Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 29 Sep 2022 19:14:49 +0000 Subject: [PATCH] Fix symbolName() and symbolNameValue() for C# --- kiss/src/kiss/Prelude.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiss/src/kiss/Prelude.hx b/kiss/src/kiss/Prelude.hx index 8cf5fc53..97429361 100644 --- a/kiss/src/kiss/Prelude.hx +++ b/kiss/src/kiss/Prelude.hx @@ -483,7 +483,7 @@ class Prelude { return v; } - public static function symbolNameValue(s:ReaderExp, allowTyped = false, allowMeta = false):String { + public static function symbolNameValue(s:ReaderExp, allowTyped:Null = false, allowMeta:Null = false):String { return switch (s.def) { case Symbol(name): name; case TypedExp(_, innerExp) if (allowTyped): symbolNameValue(innerExp, false); // Meta must always precede type annotation @@ -504,7 +504,7 @@ class Prelude { } // TODO make this behavior DRY with symbolNameValue - public static function symbolName(s:ReaderExp, allowTyped = false, allowMeta = false):ReaderExpDef { + public static function symbolName(s:ReaderExp, allowTyped:Null = false, allowMeta:Null = false):ReaderExpDef { return switch (s.def) { case Symbol(name): StrExp(name); case TypedExp(_, innerExp) if (allowTyped): symbolName(innerExp, false); // Meta must always precede type annotation