Skip to content

Commit b72f770

Browse files
committed
Add commentary to emphasize that new/const can be implicit, and new/const C<T>() is still an error when C<T> is super-bounded
1 parent 747a8a2 commit b72f770

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

specification/dartLangSpec.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7790,7 +7790,9 @@ \subsection{Super-Bounded Types}
77907790
\commentary{%
77917791
This includes the case where the actual type arguments have been provided
77927792
by type inference, which is assumed to have taken place already
7793-
(\ref{typeInference}).%
7793+
(\ref{typeInference}).
7794+
It also includes the case where \NEW{} or \CONST{} is added implicitly
7795+
(\ref{unqualifiedInvocation}, \ref{functionExpressionInvocation}).%
77947796
}
77957797
\item $T$ occurs in the \synt{constructorDesignation} of
77967798
a redirecting factory constructor header

0 commit comments

Comments
 (0)