Fixed: const callables still flagged expressions as dynamic
This commit is contained in:
parent
4aebe57432
commit
bb28e47117
1 changed files with 6 additions and 1 deletions
|
@ -59,7 +59,12 @@ namespace arookas {
|
||||||
}
|
}
|
||||||
|
|
||||||
sunExpressionFlags sunTerm.GetExpressionFlags(sunContext context) {
|
sunExpressionFlags sunTerm.GetExpressionFlags(sunContext context) {
|
||||||
return sunExpressionFlags.Calls | sunExpressionFlags.Dynamic;
|
var symbol = context.MustResolveCallable(this);
|
||||||
|
var flags = sunExpressionFlags.Calls;
|
||||||
|
if ((symbol.Modifiers & sunSymbolModifiers.Constant) == 0) {
|
||||||
|
flags |= sunExpressionFlags.Dynamic;
|
||||||
|
}
|
||||||
|
return flags;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue