Skip to content

Commit 5597936

Browse files
committed
fix Issue 19136 - is expressions don't work as documented
1 parent b790f7a commit 5597936

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
@@ -2246,10 +2246,10 @@ void foo()
22462246

22472247
$(LI $(D is $(LPAREN)) $(I Type) $(I Identifier) $(D :) $(I TypeSpecialization) $(D $(RPAREN))$(BR)
22482248

2249-
The condition is satisfied if $(I Type) is the same as
2250-
$(I TypeSpecialization), or if $(I Type) is a class and
2251-
$(I TypeSpecialization) is a base class or base interface
2252-
of it.
2249+
The condition is satisfied if $(I Type) is semantically
2250+
correct and it is the same as
2251+
or can be implicitly converted to $(I TypeSpecialization).
2252+
$(I TypeSpecialization) is only allowed to be a $(I Type).
22532253
The $(I Identifier) is declared to be either an alias of the
22542254
$(I TypeSpecialization) or, if $(I TypeSpecialization) is
22552255
dependent on $(I Identifier), the deduced type.

0 commit comments

Comments
 (0)