Skip to content

Commit 5d4c88d

Browse files
committed
Fix raw forms of undef
1 parent 9eacc65 commit 5d4c88d

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

Src/Static/ActiveRaw.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,9 @@ public static class Raw{
2121

2222
public static status Eval(status s) => s;
2323

24-
#if AL_OPTIMIZE
25-
//public static status undef => throw new Unimplemented();
26-
//public static status undef_done => throw new Unimplemented();
27-
//public static status undef_cont => throw new Unimplemented();
28-
//public static status undef_fail => throw new Unimplemented();
29-
#else
30-
public static status undef = status._fail;
31-
public static status undef_done = status._done;
32-
public static status undef_cont = status._cont;
33-
public static status undef_fail = status._fail;
24+
#if !AL_OPTIMIZE
25+
public static status undef() => status._fail;
26+
public static status undef(status s) => s;
3427
#endif
3528

3629
public static action Do (object arg) => @void;

Tests/TestActiveRaw.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ [Test] public void Standard(){
2727

2828
#if !AL_OPTIMIZE
2929
[Test] public void Undef(){
30-
o( undef.failing );
31-
o( undef_done.complete );
32-
o( undef_cont.running );
33-
o( undef_fail.failing );
30+
o( undef().failing );
31+
o( undef(done).complete );
32+
o( undef(cont).running );
33+
o( undef(fail).failing );
3434
}
3535
#endif
3636

0 commit comments

Comments
 (0)