Skip to content

Commit 910d194

Browse files
committed
Add missing declaration kind about getter/setter type error
1 parent b6769ed commit 910d194

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
@@ -3903,7 +3903,8 @@ \subsection{Setters}
39033903
\LMHash{}%
39043904
It is a
39053905
\Error{compile-time error} if a setter declares a return type other than \VOID.
3906-
It is a \Error{compile-time error} if a class has
3906+
%% TODO(eernst): Come Dart 3, add 'mixin class', later: 'extension type'.
3907+
It is a \Error{compile-time error} if a library, class, mixin, or extension has
39073908
a setter named \code{$v$=} with argument type $T$ and
39083909
a getter named $v$ with return type $S$,
39093910
and $S$ is not a subtype of $T$.

0 commit comments

Comments
 (0)