Skip to content

Commit

Permalink
Add commentary to emphasize that new/const can be implicit, and `…
Browse files Browse the repository at this point in the history
…new/const C<T>()` is still an error when `C<T>` is super-bounded
  • Loading branch information
eernstg committed Jul 5, 2023
1 parent a0e2100 commit 9b8eb72
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion specification/dartLangSpec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7634,7 +7634,9 @@ \subsection{Super-Bounded Types}
\commentary{%
This includes the case where the actual type arguments have been provided
by type inference, which is assumed to have taken place already
(\ref{typeInference}).%
(\ref{typeInference}).
It also includes the case where \NEW{} or \CONST{} is added implicitly
(\ref{unqualifiedInvocation}, \ref{functionExpressionInvocation}).%
}
\item $T$ occurs in the \synt{constructorDesignation} of
a redirecting factory constructor header
Expand Down

0 comments on commit 9b8eb72

Please sign in to comment.