We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff127ea commit 1ba676fCopy full SHA for 1ba676f
Biohazrd.CSharp/Trampolines/Adapter.cs
@@ -29,6 +29,10 @@ private protected Adapter(TranslatedParameter target)
29
TargetDeclaration = target.Id;
30
DefaultValue = target.DefaultValue;
31
32
+ //HACK: Don't allow bad default values (need to rework how default values work in general, see notes in Trampoline.)
33
+ if (DefaultValue is StringConstant or UnsupportedConstantExpression)
34
+ { DefaultValue = null; }
35
+
36
SpecialKind = SpecialAdapterKind.None;
37
}
38
0 commit comments