mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 21:21:31 +03:00
46 lines
641 B
TypeScript
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 () {}
|
|
}
|
|
} |