1
0
Fork 0
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:
Brian Fiete 2021-06-19 09:29:36 -07:00
parent fa6bdc0d04
commit 5e9ac07804
3 changed files with 54 additions and 1 deletions

View 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;
}
}
}
}