From 4ea2179694201a572b31b4ec4238308283b1f6d0 Mon Sep 17 00:00:00 2001 From: Erik Corry Date: Mon, 11 Mar 2024 14:49:46 +0100 Subject: [PATCH] Fix types on background methods, a background can be an int --- src/element.toit | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/element.toit b/src/element.toit index 74d4b2a..270e589 100644 --- a/src/element.toit +++ b/src/element.toit @@ -129,10 +129,10 @@ abstract class Element implements Window: border_ = value invalidate - background -> Background?: + background -> any: return background_ - background= value/Background?: + background= value: if value != background_: invalidate background_ = value