mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-30 05:15:59 +02:00
Initial checkin
This commit is contained in:
parent
c74712dad9
commit
078564ac9e
3242 changed files with 1616395 additions and 0 deletions
25
IDE/Tests/CompileFail001/src/Cases.bf
Normal file
25
IDE/Tests/CompileFail001/src/Cases.bf
Normal file
|
@ -0,0 +1,25 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
using System;
|
||||
|
||||
namespace IDETest
|
||||
{
|
||||
class Cases
|
||||
{
|
||||
public void Test()
|
||||
{
|
||||
Result<int> iResult = .Err;
|
||||
|
||||
if ((iResult case .Ok(var val0)) || (true)) //FAIL
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
int val1;
|
||||
if ((true) || (iResult case .Ok(out val1)))
|
||||
{
|
||||
int a = val1; //FAIL
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue