Skip to content

Commit c48f025

Browse files
authored
Merge pull request #3139 from sorin-gabriel/sorinm-issue-19136
fix Issue 19136 - is expressions don't work as documented
2 parents 3d40280 + 5597936 commit c48f025

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/expression.dd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2260,10 +2260,10 @@ void foo()
22602260

22612261
$(LI $(D is $(LPAREN)) $(I Type) $(I Identifier) $(D :) $(I TypeSpecialization) $(D $(RPAREN))$(BR)
22622262

2263-
The condition is satisfied if $(I Type) is the same as
2264-
$(I TypeSpecialization), or if $(I Type) is a class and
2265-
$(I TypeSpecialization) is a base class or base interface
2266-
of it.
2263+
The condition is satisfied if $(I Type) is semantically
2264+
correct and it is the same as
2265+
or can be implicitly converted to $(I TypeSpecialization).
2266+
$(I TypeSpecialization) is only allowed to be a $(I Type).
22672267
The $(I Identifier) is declared to be either an alias of the
22682268
$(I TypeSpecialization) or, if $(I TypeSpecialization) is
22692269
dependent on $(I Identifier), the deduced type.

0 commit comments

Comments
 (0)