let superClass = class {};
try { superClass = Model; } catch(ex) {}
class Counter extends superClass {
{
super();
this.count = 0;
this.log = null;
}
{
return this.count;
}
{
return this.log;
}
{
this.count = newCount;
this.log = `set count to ${this.count}`;
}
{
this.count++;
this.log = `incremented count to ${this.count}`;
}
{
this.count--;
this.log = `decremented count to ${this.count}`;
}
{
return `count is ${this.count}`;
}
}
function prn(o) { console.log(o); }
const counter = new Counter();
;
counter.increment();
;
counter.decrement();
counter.decrement();
;