Skip to content

Commit ed9e28d

Browse files
committed
Add missing declaration kind about getter/setter type error
1 parent 8fd64b0 commit ed9e28d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

specification/dartLangSpec.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3914,7 +3914,8 @@ \subsection{Setters}
39143914
\LMHash{}%
39153915
It is a
39163916
\Error{compile-time error} if a setter declares a return type other than \VOID.
3917-
It is a \Error{compile-time error} if a class has
3917+
%% TODO(eernst): Come Dart 3, add 'mixin class', later: 'extension type'.
3918+
It is a \Error{compile-time error} if a library, class, mixin, or extension has
39183919
a setter named \code{$v$=} with argument type $T$ and
39193920
a getter named $v$ with return type $S$,
39203921
and $S$ is not a subtype of $T$.

0 commit comments

Comments
 (0)