add ex070 comptime 5

This commit is contained in:
Dave Gauer
2021-04-21 20:08:34 -04:00
parent 0efd9340f0
commit 9c095c60a4
3 changed files with 146 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
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");