File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -2799,7 +2799,8 @@ $(H4 $(LNAME2 is-identifier, Identifier Forms))
2799
2799
$(P *Identifier* is declared to be an alias of the resulting
2800
2800
type if the condition is satisfied. The *Identifier* forms
2801
2801
can only be used if the $(I IsExpression) appears in a
2802
- $(GLINK2 version, StaticIfCondition) or $(GLINK2 version, StaticAssert).
2802
+ $(GLINK2 version, StaticIfCondition) or the first argument of a
2803
+ $(GLINK2 version, StaticAssert).
2803
2804
)
2804
2805
2805
2806
$(H5 $(LNAME2 is-type-identifier, $(D is $(LPAREN)) $(I Type) $(I Identifier) $(D $(RPAREN))))
@@ -2810,9 +2811,19 @@ $(H4 $(LNAME2 is-identifier, Identifier Forms))
2810
2811
is declared to be an alias of $(I Type).
2811
2812
)
2812
2813
2814
+ $(SPEC_RUNNABLE_EXAMPLE_COMPILE
2815
+ ---
2816
+ struct S
2817
+ {
2818
+ int i, j;
2819
+ }
2820
+ static assert(is(typeof(S.i) T) && T.sizeof == 4);
2821
+ ---
2822
+ )
2813
2823
$(SPEC_RUNNABLE_EXAMPLE_COMPILE
2814
2824
-------------
2815
2825
alias Bar = short;
2826
+
2816
2827
void foo()
2817
2828
{
2818
2829
static if (is(Bar T))
You can’t perform that action at this time.
0 commit comments