mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
'not case' expression, case variable scope change
This commit is contained in:
parent
471897a150
commit
5feb0c044b
15 changed files with 133 additions and 19 deletions
|
@ -128,7 +128,7 @@ namespace Tests
|
|||
}
|
||||
|
||||
irn = null;
|
||||
if (irn case .Ok(let val))
|
||||
if (irn case .Ok(let val2))
|
||||
{
|
||||
Test.FatalError();
|
||||
}
|
||||
|
|
|
@ -91,6 +91,15 @@ namespace Tests
|
|||
bool eq = iResult case .Ok(ref result);
|
||||
Test.Assert(result == 99);
|
||||
|
||||
if (iResult not case .Ok(var result2))
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
Test.FatalError();
|
||||
}
|
||||
Test.Assert(result2 == 0);
|
||||
|
||||
const ETest t = .B(234.5f);
|
||||
switch (t)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue