Skip to content

Commit c5661f8

Browse files
committed
Add missing declaration kind about getter/setter type error
1 parent 68ddde9 commit c5661f8

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

0 commit comments

Comments
 (0)