1
0
Fork 0
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:
Brian Fiete 2021-09-11 07:34:44 -07:00
parent 4cda126188
commit 723e2177fc
2 changed files with 32 additions and 2 deletions

View 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();
}
}
}
}