ziglings/patches/patches/070_comptime5.patch
2021-06-30 19:28:27 -04:00

6 lines
207 B
Diff

126,127c126,127
< const walks_like_duck = ???;
< const quacks_like_duck = ???;
---
> const walks_like_duck = @hasDecl(MyType, "waddle");
> const quacks_like_duck = @hasDecl(MyType, "quack");