mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
640 B
TypeScript
25 lines
640 B
TypeScript
//// [tests/cases/compiler/classMergedWithInterfaceMultipleBasesNoError.ts] ////
|
|
|
|
//// [classMergedWithInterfaceMultipleBasesNoError.ts]
|
|
interface Bar { }
|
|
interface Baz { }
|
|
interface Q { }
|
|
interface Foo extends Bar, Baz { }
|
|
class Foo { }
|
|
|
|
export default class extends Foo {
|
|
readonly observer = this.handleIntersection;
|
|
readonly handleIntersection = () => { }
|
|
}
|
|
|
|
//// [classMergedWithInterfaceMultipleBasesNoError.js]
|
|
class Foo {
|
|
}
|
|
export default class extends Foo {
|
|
constructor() {
|
|
super(...arguments);
|
|
this.observer = this.handleIntersection;
|
|
this.handleIntersection = () => { };
|
|
}
|
|
}
|