mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
33 lines
621 B
TypeScript
33 lines
621 B
TypeScript
//// [tests/cases/compiler/emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts] ////
|
|
|
|
//// [emitSuperCallBeforeEmitParameterPropertyDeclaration1.ts]
|
|
class A {
|
|
blub = 6;
|
|
}
|
|
|
|
|
|
class B extends A {
|
|
constructor(public x: number) {
|
|
"use strict";
|
|
'someStringForEgngInject';
|
|
super()
|
|
}
|
|
}
|
|
|
|
|
|
//// [emitSuperCallBeforeEmitParameterPropertyDeclaration1.js]
|
|
"use strict";
|
|
class A {
|
|
constructor() {
|
|
this.blub = 6;
|
|
}
|
|
}
|
|
class B extends A {
|
|
constructor(x) {
|
|
"use strict";
|
|
'someStringForEgngInject';
|
|
super();
|
|
this.x = x;
|
|
}
|
|
}
|