From 5b47e8ebe6cee0b89dbfe5a2ee413f83d3b7e4e0 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Wed, 10 Feb 2021 21:44:11 -0500 Subject: Removed incorrect explanation of assignment error (#1) It really has nothing to do with the if/else expression. The peer types are being resolved correctly. The same error can be produced with something as simple as: var foo = 5; --- ziglings | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ziglings') diff --git a/ziglings b/ziglings index 4774715..7c2f6a1 100755 --- a/ziglings +++ b/ziglings @@ -116,6 +116,11 @@ check_it 41_pointers3.zig "foo=6, bar=11" check_it 42_pointers4.zig "num: 5, more_nums: 1 1 5 1" check_it 43_pointers5.zig "Wizard (G:10 H:100 XP:20)" check_it 44_quiz5.zig "Elephant A. Elephant B. Elephant C." "Oh no! We forgot Elephant B!" +# optional vals (simple scalar) +# optional fields (elephant tail - no longer need circular) +# super-simple struct method +# use struct method for elephant tails +# quiz: add elephant trunk (like tail)! echo echo " __ __ _ " -- cgit v1.2.3