mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-22 17:48:01 +02:00
18 lines
192 B
Beef
18 lines
192 B
Beef
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;
|
|
}
|
|
}
|
|
}
|
|
}
|