With the current compiler (sdk-4.1.5 and earlier),
import Toybox.Lang;
function foo(x as Number or String) as Boolean {
return x instanceof Number;
}
compiles, even with strict type checking, but fails at runtime ( Could not find symbol ...