From 618eade1e625f99364f1cde26e79d37eb1eb4040 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Wed, 21 Apr 2021 20:08:34 -0400 Subject: add ex070 comptime 5 --- patches/patches/070_comptime5.patch | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 patches/patches/070_comptime5.patch (limited to 'patches') diff --git a/patches/patches/070_comptime5.patch b/patches/patches/070_comptime5.patch new file mode 100644 index 0000000..1c56719 --- /dev/null +++ b/patches/patches/070_comptime5.patch @@ -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"); -- cgit v1.2.3-ZIG