-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Area-InteractiveBugInteractive-DebuggingInteractive-ScriptingLogicResolution-FixedThe bug has been fixed and/or the requested behavior has been implementedThe bug has been fixed and/or the requested behavior has been implementedTenet-CompatibilityViolation of forwards/backwards compatibility in a design-time piece.Violation of forwards/backwards compatibility in a design-time piece.Verified
Milestone
Description
This issue was previously reported in the old Roslyn forums.
var i = 0;
switch (i)
{
case 0:
Console.WriteLine('0');
case 1:
Console.WriteLine('1');
case 2:
break;
}The code above will compile in both scripting and interactive mode.
In interactive mode, the code will compile even if the break statement is omitted.
Edited Code for clarity
Metadata
Metadata
Assignees
Labels
Area-InteractiveBugInteractive-DebuggingInteractive-ScriptingLogicResolution-FixedThe bug has been fixed and/or the requested behavior has been implementedThe bug has been fixed and/or the requested behavior has been implementedTenet-CompatibilityViolation of forwards/backwards compatibility in a design-time piece.Violation of forwards/backwards compatibility in a design-time piece.Verified