mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-06 12:52:49 -04:00
Allow for default parameters that are non-constant entities, but not any non-constant expression
This commit is contained in:
1 parent
adbb3bb75f
commit
ae2af8315e
3 files changed
+30
-7
No files matched your search
+5
-1
@@ -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