mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-30 01:44:36 +00:00
Allow for default parameters that are non-constant entities, but not any non-constant expression
This commit is contained in:
@@ -62,11 +62,15 @@ enum ParameterValueKind {
|
||||
ParameterValue_Constant,
|
||||
ParameterValue_Nil,
|
||||
ParameterValue_Location,
|
||||
ParameterValue_Value,
|
||||
};
|
||||
|
||||
struct ParameterValue {
|
||||
ParameterValueKind kind;
|
||||
ExactValue value;
|
||||
union {
|
||||
ExactValue value;
|
||||
Ast *ast_value;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user