ziglings/patches/patches/070_comptime5.patch
2021-04-21 20:08:34 -04:00

6 lines
207 B
Diff

116,117c116,117
< const walks_like_duck = ???;
< const quacks_like_duck = ???;
---
> const walks_like_duck = @hasDecl(MyType, "waddle");
> const quacks_like_duck = @hasDecl(MyType, "quack");