Skip to content

Commit 68265e1

Browse files
mmalferovTimWolla
andauthored
Write introduction for #[\Override] attribute (#4075)
Co-authored-by: Tim Düsterhus <[email protected]>
1 parent 2aaaf19 commit 68265e1

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

language/predefined/attributes/override.xml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,16 @@
77

88
<section xml:id="override.intro">
99
&reftitle.intro;
10-
<para>
11-
</para>
10+
<simpara>
11+
This attribute is used to indicate that a method is intended
12+
to override a method of a parent class or that it implements
13+
a method defined in an interface.
14+
</simpara>
15+
<simpara>
16+
If no method with the same name exists in a parent class or
17+
in an implemented interface a compile-time error will be
18+
emitted.
19+
</simpara>
1220
</section>
1321

1422
<section xml:id="override.synopsis">

0 commit comments

Comments
 (0)