mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fallthrough fixes for destructuring and allHadReturns
This commit is contained in:
parent
fa6bdc0d04
commit
5e9ac07804
3 changed files with 54 additions and 1 deletions
18
IDEHelper/Tests/src/Switches.bf
Normal file
18
IDEHelper/Tests/src/Switches.bf
Normal file
|
@ -0,0 +1,18 @@
|
|||
using System;
|
||||
|
||||
namespace Tests
|
||||
{
|
||||
class Switches
|
||||
{
|
||||
int Switch0(Result<int> res)
|
||||
{
|
||||
switch (res)
|
||||
{
|
||||
case .Ok(let a):
|
||||
return 0;
|
||||
case .Err(let b):
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue