Skip to content

Commit 757accf

Browse files
authored
Add rule to make it an error for a mixin on type to be super-bounded (#3535)
Add rule to make it an error for a mixin on type to be super-bounded. This was always necessary anyway because a mixin with a super-bounded on-type could never be applied, so we should of course make it an error to have that in the first place.
1 parent dc4fa5f commit 757accf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

specification/dartLangSpec.tex

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7692,9 +7692,12 @@ \subsection{Super-Bounded Types}
76927692
\item $T$ is an immediate subterm of an \EXTENDS{} clause of a class
76937693
(\ref{superclasses}),
76947694
or it occurs as an element in the type list of an \IMPLEMENTS{} clause
7695-
(\ref{superinterfaces}),
7695+
%% TODO(eernst): Come extension types, add ref. Maybe mixin class?
7696+
(\ref{superinterfaces}, \ref{enums}, \ref{mixins}),
76967697
or a \WITH{} clause
7697-
(\ref{classes}).
7698+
(\ref{classes}, \ref{enums}),
7699+
or it occurs as an element in the type list of an \ON{} clause of a mixin
7700+
(\ref{mixins}).
76987701
\end{itemize}
76997702

77007703
\commentary{%

0 commit comments

Comments
 (0)