swc/crates/swc_ecma_parser/tests/tsc/override1.ts
2022-02-04 17:08:38 +09:00

46 lines
641 B
TypeScript

// @declaration: true
// @noImplicitOverride: true
class B {
foo (v: string) {}
fooo (v: string) {}
}
class D extends B {
override foo (v: string) {}
fooo (v: string) {}
override bar(v: string) {}
}
class C {
override foo(v: string) {}
}
function f () {
return class extends B {
override foo (v: string) {}
fooo (v: string) {}
override bar(v: string) {}
}
}
class E extends (class {
foo () { }
bar () { }
}) {
override foo () { }
bar () { }
baz() {}
override bazz () {}
}
function ff () {
return class {
override foo () {}
}
}