1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
class JsCast1 { constructor() { this.val = 1; } myval() { return this.val; } } class JsCast2 { } class JsCast3 extends JsCast1 { constructor() { super(); this.val = 3; } } class JsCast4 extends JsCast3 { constructor() { super(); this.val = 4; } } exports.JsCast1 = JsCast1; exports.JsCast2 = JsCast2; exports.JsCast3 = JsCast3; exports.JsCast4 = JsCast4;