ziglings/patches/patches/070_comptime5.patch

7 lines
207 B
Diff
Raw Normal View History

2021-06-30 19:28:27 -04:00
126,127c126,127
2021-04-21 20:08:34 -04:00
< const walks_like_duck = ???;
< const quacks_like_duck = ???;
---
> const walks_like_duck = @hasDecl(MyType, "waddle");
> const quacks_like_duck = @hasDecl(MyType, "quack");