mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 03:52:19 +02:00
Support for const expressions for bools & chars
This commit is contained in:
parent
2a98bf00d5
commit
28689853d2
6 changed files with 42 additions and 4 deletions
|
@ -7586,6 +7586,8 @@ void BfModule::ResolveGenericParamConstraints(BfGenericParamInstance* genericPar
|
|||
|
||||
switch (typeCode)
|
||||
{
|
||||
case BfTypeCode_StringId:
|
||||
case BfTypeCode_Boolean:
|
||||
case BfTypeCode_Int8:
|
||||
case BfTypeCode_UInt8:
|
||||
case BfTypeCode_Int16:
|
||||
|
@ -11970,6 +11972,7 @@ BfVariant BfModule::TypedValueToVariant(BfAstNode* refNode, const BfTypedValue&
|
|||
|
||||
switch (constant->mTypeCode)
|
||||
{
|
||||
case BfTypeCode_Boolean:
|
||||
case BfTypeCode_Int8:
|
||||
case BfTypeCode_UInt8:
|
||||
case BfTypeCode_Int16:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue