mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed missing error for outer static instance-qualified lookup
This commit is contained in:
parent
61a3328c5a
commit
40a9dbf25c
3 changed files with 30 additions and 15 deletions
|
@ -129,8 +129,8 @@ namespace Tests
|
|||
{
|
||||
public int Test;
|
||||
}
|
||||
public static List<CTest> mList = new .() ~ delete _;
|
||||
private static Event<EventHandler> mEvent;
|
||||
public static List<CTest> sList = new .() ~ delete _;
|
||||
private static Event<EventHandler> sEvent;
|
||||
|
||||
[Test]
|
||||
public static void TestBasics()
|
||||
|
@ -161,17 +161,17 @@ namespace Tests
|
|||
TestA ta = scope .();
|
||||
ta.Vec = .(33, 44);
|
||||
|
||||
mList.Add(scope .());
|
||||
mEvent.Add(new (sender, e) =>
|
||||
sList.Add(scope .());
|
||||
sEvent.Add(new (sender, e) =>
|
||||
{
|
||||
mList.ForEach((b) => { b.Test = 1; });
|
||||
sList.ForEach((b) => { b.Test = 1; });
|
||||
});
|
||||
mEvent(null, .Empty);
|
||||
mEvent.Dispose();
|
||||
Test.Assert(mList.Back.Test == 1);
|
||||
sEvent(null, .Empty);
|
||||
sEvent.Dispose();
|
||||
Test.Assert(sList.Back.Test == 1);
|
||||
|
||||
int i = 0;
|
||||
mList.ForEach((l) => l.mList.ForEach((l) =>
|
||||
sList.ForEach((l) => sList.ForEach((l) =>
|
||||
{
|
||||
i++;
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue