Skip to content

Commit 593e785

Browse files
KyleFinrmacnak-google
authored andcommitted
docs: Mixins can have abstract methods (dart-lang#5043)
See dart-lang#4767 (comment)
1 parent 3c3ede2 commit 593e785

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/language/methods.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ wrapping them with methods, all without changing client code.
135135

136136
Instance, getter, and setter methods can be abstract, defining an
137137
interface but leaving its implementation up to other classes.
138-
Abstract methods can only exist in [abstract classes][].
138+
Abstract methods can only exist in [abstract classes][] or [mixins][].
139139

140140
To make a method abstract, use a semicolon (;) instead of a method body:
141141

@@ -156,3 +156,4 @@ class EffectiveDoer extends Doer {
156156

157157
[operators]: /language/operators
158158
[abstract classes]: /language/class-modifiers#abstract
159+
[mixins]: /language/mixins

0 commit comments

Comments
 (0)