The canvas test's position helpers are generic again

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 <git@eca.dev>
This commit is contained in:
Linus Björnstam 2026-10-25 19:40:54 +01:00
parent 66e861351b
commit 5379269f43

View file

@ -129,8 +129,8 @@
(defun (click path) (defun (click path)
(raise-event (cast Interactive (ctl path)) (RoutedEventArgs. (cast RoutedEvent click-event)))) (raise-event (cast Interactive (ctl path)) (RoutedEventArgs. (cast RoutedEvent click-event))))
(defun (both) (.pair (app-model app))) (defun (both) (.pair (app-model app)))
(defun (left-of (: c Control)) (left-of* (cast AvaloniaObject c))) (defun (left-of c) (left-of* (cast AvaloniaObject c)))
(defun (top-of (: c Control)) (top-of* (cast AvaloniaObject c))) (defun (top-of c) (top-of* (cast AvaloniaObject c)))
;; --- view-map --------------------------------------------------------------------- ;; --- view-map ---------------------------------------------------------------------
(click '(0 1 0)) (click '(0 1 0))