1
0
Fork 0
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:
Brian Fiete 2025-02-22 09:56:39 -08:00
parent 471897a150
commit 5feb0c044b
15 changed files with 133 additions and 19 deletions

View file

@ -128,7 +128,7 @@ namespace Tests
}
irn = null;
if (irn case .Ok(let val))
if (irn case .Ok(let val2))
{
Test.FatalError();
}

View file

@ -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)
{