From d90f386bd2253d64f867c3c826fba881f67fb1e9 Mon Sep 17 00:00:00 2001 From: mlokr Date: Mon, 13 May 2024 15:27:09 +0200 Subject: [PATCH] adding an edge case --- hblang/examples/different_types.hb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hblang/examples/different_types.hb b/hblang/examples/different_types.hb index f3121148..7d0a8192 100644 --- a/hblang/examples/different_types.hb +++ b/hblang/examples/different_types.hb @@ -34,6 +34,10 @@ main := fn(): int { return 0; } + if *(&pixel.point.y - 1) != 0 { + return 64; + } + return pixel.point.x + pixel.point.y + pixel.color.r + pixel.color.g + pixel.color.b + pixel.color.a; }