Skip to content

Commit ab1b5c3

Browse files
committed
Fix SelectCaseWithEnumRangeAsync test: add missing CS0825 compilation error
The test uses a 'var @case when' pattern which all other similar tests correctly expect to produce a CS0825 compilation error in the target. Without this, the test output won't match and CI will fail. https://claude.ai/code/session_01AkwUvu3XuCdj3D4axoX4UX
1 parent ee2c8e8 commit ab1b5c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Tests/CSharp/StatementTests/MethodStatementTests.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,9 @@ public static bool IsPrivileged(UserLevel level)
11501150
11511151
return false;
11521152
}
1153-
}");
1153+
}
1154+
1 target compilation errors:
1155+
CS0825: The contextual keyword 'var' may only appear within a local variable declaration or in script code");
11541156
}
11551157

11561158
[Fact]

0 commit comments

Comments
 (0)