提交 d02c6905 编写于 作者: G Gen Lu

Fix crash caused by passing null as constant value when creating Literal bound node

上级 5363c28a
......@@ -46,7 +46,7 @@ public static ConstantValue SynthesizeNumeric(ITypeSymbol type, int value)
return SynthesizeNumeric(((INamedTypeSymbol)type).EnumUnderlyingType, value);
}
return null;
return ConstantValue.Bad;
}
public static BinaryOperationKind DeriveAdditionKind(ITypeSymbol type)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册