mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed expressions block results where values could cross ScopeHardEnd
This commit is contained in:
parent
4cda126188
commit
723e2177fc
2 changed files with 32 additions and 2 deletions
22
IDEHelper/Tests/src/Expressions.bf
Normal file
22
IDEHelper/Tests/src/Expressions.bf
Normal file
|
@ -0,0 +1,22 @@
|
|||
#pragma warning disable 168
|
||||
|
||||
using System;
|
||||
|
||||
namespace Tests
|
||||
{
|
||||
class Expressions
|
||||
{
|
||||
[Test]
|
||||
public static void TestBasics()
|
||||
{
|
||||
int num = -1;
|
||||
if ( {
|
||||
var obj = scope Object();
|
||||
num > 999
|
||||
})
|
||||
{
|
||||
Test.FatalError();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue