From 5379269f4397e6e9214ef84002fdb07a26281555f5b0af2b0769666c960ef704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Bj=C3=B6rnstam?= Date: Sun, 25 Oct 2026 19:40:54 +0100 Subject: [PATCH] The canvas test's position helpers are generic again MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The compiler now casts from a type parameter through object, so the helpers no longer need their parameter declared as a Control. 🤖 Generated with [ECA](https://eca.dev) (anthropic/claude-opus-4-8) Co-Authored-By: eca-agent --- tests/canvas.bjo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/canvas.bjo b/tests/canvas.bjo index 4215c35..7c49f23 100644 --- a/tests/canvas.bjo +++ b/tests/canvas.bjo @@ -129,8 +129,8 @@ (defun (click path) (raise-event (cast Interactive (ctl path)) (RoutedEventArgs. (cast RoutedEvent click-event)))) (defun (both) (.pair (app-model app))) - (defun (left-of (: c Control)) (left-of* (cast AvaloniaObject c))) - (defun (top-of (: c Control)) (top-of* (cast AvaloniaObject c))) + (defun (left-of c) (left-of* (cast AvaloniaObject c))) + (defun (top-of c) (top-of* (cast AvaloniaObject c))) ;; --- view-map --------------------------------------------------------------------- (click '(0 1 0))