mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-19 08:30:25 +02:00
19 lines
192 B
Beef
19 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;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|