diff --git a/DMCompiler/Compiler/DM/DMAST.cs b/DMCompiler/Compiler/DM/DMAST.cs index 59f0f5c246..c30e04ead1 100644 --- a/DMCompiler/Compiler/DM/DMAST.cs +++ b/DMCompiler/Compiler/DM/DMAST.cs @@ -1329,10 +1329,17 @@ public override void Visit(DMASTVisitor visitor) { } public bool AllValuesConstant() { - return Values.All(value => value is { - Key: DMASTExpressionConstant, - Value: DMASTExpressionConstant - }); + return Values.All( + value => (value is { + Key: DMASTExpressionConstant, + Value: DMASTExpressionConstant + }) + || + (value is { + Key: DMASTExpressionConstant, + Value: DMASTList valueList + } && valueList.AllValuesConstant()) + ); } }