ziglings/patches/patches/070_comptime5.patch

6 lines
207 B
Diff

122,123c122,123
< const walks_like_duck = ???;
< const quacks_like_duck = ???;
---
> const walks_like_duck = @hasDecl(MyType, "waddle");
> const quacks_like_duck = @hasDecl(MyType, "quack");