Skip to content

Commit 9b8eb72

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 a0e2100 commit 9b8eb72

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
@@ -7634,7 +7634,9 @@ \subsection{Super-Bounded Types}
76347634
\commentary{%
76357635
This includes the case where the actual type arguments have been provided
76367636
by type inference, which is assumed to have taken place already
7637-
(\ref{typeInference}).%
7637+
(\ref{typeInference}).
7638+
It also includes the case where \NEW{} or \CONST{} is added implicitly
7639+
(\ref{unqualifiedInvocation}, \ref{functionExpressionInvocation}).%
76387640
}
76397641
\item $T$ occurs in the \synt{constructorDesignation} of
76407642
a redirecting factory constructor header

0 commit comments

Comments
 (0)