File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -545,23 +545,26 @@ class C
545
545
$(CODE_HIGHLIGHT static if) (k == 5) // ok, k is in current scope
546
546
int z;
547
547
}
548
-
549
- template INT(int i)
548
+ ---
549
+ $(SPEC_RUNNABLE_EXAMPLE_FAIL
550
+ ---
551
+ template Int(int i)
550
552
{
551
553
$(ARGS static if) (i == 32)
552
- alias INT = int;
554
+ alias Int = int;
553
555
$(ARGS else static if) (i == 16)
554
- alias INT = short;
556
+ alias Int = short;
555
557
$(ARGS else)
556
558
static assert(0); // not supported
557
559
}
558
560
559
- INT !(32) a; // a is an int
560
- INT !(16) b; // b is a short
561
- INT !(17) c; // error, static assert trips
561
+ Int !(32) a; // a is an int
562
+ Int !(16) b; // b is a short
563
+ Int !(17) c; // error, static assert trips
562
564
------
565
+ )
563
566
564
- $(P A $(I StaticIfConditional) condition differs from an
567
+ $(P A $(I StaticIfCondition) differs from an
565
568
$(I IfStatement) in the following ways:
566
569
)
567
570
You can’t perform that action at this time.
0 commit comments