Failed invoking <symbol>
UnexpectedTypeException: Expected Object, given Method
<init> in ......mc:11
onStart in ......mc:15
Unhandled Exception
Failed invoking <symbol>
Socket Error in packet header 0
Failed invoking <symbol>
UnexpectedTypeException: Expected Object, given Method
<init> in ......mc:11
onStart in ......mc:15
Unhandled Exception
Failed invoking <symbol>
Socket Error in packet header 0
using Toybox.Application as App;
using Toybox.Math as Math;
using Toybox.Graphics as Gfx;
module X {
const x = [ Gfx.FONT_SMALL, Math.PI, 4 ];
}
const y = [ 3, 2, 1 ];
class ZZZApp extends App.AppBase {
using Toybox.System as Sys;
function initialize() {
AppBase.initialize();
}
//! onStart() is called on application start up
function onStart() {
Sys.println(X.x);
Sys.println(y);
}
//! onStop() is called when your application is exiting
function onStop() {
}
//! Return the initial view of your application here
function getInitialView() {
return [ new ZZZView() ];
}
}
using Toybox.Application as App;
using Toybox.Graphics as Gfx;
using Toybox.WatchUi as Ui;
//using DemoMod as DemoMod;
class errorApp extends App.AppBase {
var modClass;
function initialize() {
AppBase.initialize();
}
//! onStart() is called on application start up
function onStart() {
System.println(DemoMod.A);
}
function getInitialView() {
return [ new errorView(), new errorDelegate() ];
}
}
class errorView extends Ui.View {
function onShow(dc) {
requestUpdate();
}
function onUpdate(dc) {
dc.setColor(Gfx.COLOR_BLACK, Gfx.COLOR_WHITE);
dc.clear();
dc.drawText(dc.getWidth()/2, dc.getHeight()/2, Gfx.FONT_MEDIUM, "View", Gfx.TEXT_JUSTIFY_CENTER|Gfx.TEXT_JUSTIFY_VCENTER);
}
}
class errorDelegate extends Ui.BehaviorDelegate {
function initialize() {
BehaviorDelegate.initialize();
}
function onBack() {
Ui.popView(Ui.SLIDE_RIGHT);
return true;
}
}
module DemoMod {
const A = [0, 1, 2];
}