Skip to content

Commit a6441b3

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 8399158 commit a6441b3

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
@@ -7949,7 +7949,9 @@ \subsection{Super-Bounded Types}
79497949
\commentary{%
79507950
This includes the case where the actual type arguments have been provided
79517951
by type inference, which is assumed to have taken place already
7952-
(\ref{typeInference}).%
7952+
(\ref{typeInference}).
7953+
It also includes the case where \NEW{} or \CONST{} is added implicitly
7954+
(\ref{unqualifiedInvocation}, \ref{functionExpressionInvocation}).%
79537955
}
79547956
\item $T$ occurs in the \synt{constructorDesignation} of
79557957
a redirecting factory constructor header

0 commit comments

Comments
 (0)