Skip to content

Commit 00515db

Browse files
committed
Closes #181
1 parent 5a392d5 commit 00515db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/content/docs/Generic Programming/anyinterfaces.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,11 @@ fn void whoareyou(MyName a)
170170
If we have an optional method we should first check that it is implemented:
171171

172172
```c3
173+
interface VeryOptional
174+
{
175+
fn void do_something(int x, void* ptr) @optional;
176+
}
177+
173178
fn void do_something(VeryOptional z)
174179
{
175180
if (&z.do_something)

0 commit comments

Comments
 (0)