1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-19 08:30:25 +02:00
Beef/IDEHelper/Tests/src/Switches.bf

19 lines
192 B
Beef
Raw Normal View History

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