Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions NetPrints/Translator/TranslatorUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ public static string ObjectToLiteral(object obj, TypeSpecifier type)
{
return $"{obj}M";
}
else if (type==TypeSpecifier.FromType<bool>())
{
return obj.ToString().ToLower(); //Bool false is converted to False, causing the issue in compilation
}
else
{
return obj.ToString();
Expand Down