Skip to content

Commit 7824984

Browse files
committed
MemberUtilities: Use .Value for HasFlag on nullable (Fixes #67)
1 parent 50e7a07 commit 7824984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WattleScript.Interpreter/Tree/MemberUtilities.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static void AddModifierFlag(ref MemberModifierFlags source, Token token,
3939

4040
foreach (var combo in flagConflicts)
4141
{
42-
if (combo.appliesTo.HasFlag(memberType) && source.HasFlag(combo.a) && (combo.b == null || source.HasFlag(combo.b)))
42+
if (combo.appliesTo.HasFlag(memberType) && source.HasFlag(combo.a) && (combo.b == null || source.HasFlag(combo.b.Value)))
4343
{
4444
if (combo.msg != null)
4545
throw new SyntaxErrorException(token, combo.msg);

0 commit comments

Comments
 (0)