mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
36 lines
538 B
TypeScript
36 lines
538 B
TypeScript
//// [tests/cases/conformance/classes/classStaticBlock/classStaticBlock5.ts] ////
|
|
|
|
//// [classStaticBlock5.ts]
|
|
class B {
|
|
static a = 1;
|
|
static b = 2;
|
|
}
|
|
|
|
class C extends B {
|
|
static b = 3;
|
|
static c = super.a
|
|
|
|
static {
|
|
this.b;
|
|
super.b;
|
|
super.a;
|
|
}
|
|
}
|
|
|
|
|
|
//// [classStaticBlock5.js]
|
|
"use strict";
|
|
class B {
|
|
static a = 1;
|
|
static b = 2;
|
|
}
|
|
class C extends B {
|
|
static b = 3;
|
|
static c = super.a;
|
|
static {
|
|
this.b;
|
|
super.b;
|
|
super.a;
|
|
}
|
|
}
|