-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
import Toybox.Lang;
import Toybox.WatchUi;
class OptiBug {
var labelUnitString as String;
var label as String;
function initialize(measureId as Number) {
self.labelUnitString = "foo";
self.label = getLabel();
}
(:inline)
hidden function getLabel() as String {
var labelSuffix = self.labelUnitString;
return (WatchUi.loadResource(Rez.Strings.AppName) as String) + labelSuffix;
}
}
Even though getLabel() gets correctly inlined, the original method is kept (and the only place it is used is in the initialize)
Metadata
Metadata
Assignees
Labels
No labels