mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
add ex070 comptime 5
This commit is contained in:
6
patches/patches/070_comptime5.patch
Normal file
6
patches/patches/070_comptime5.patch
Normal 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");
|
||||
Reference in New Issue
Block a user