TypeScript/tests/baselines/reference/jsEmitIntersectionProperty.js
Andrew Branch 95cc1c279e
Fix crash from missing valueDeclaration on intersection property (#37696)
* Add crashing test

* Fix missing valueDeclaration on intersection symbol property

* Remove assertion from serializeAsClass
2020-04-09 14:00:21 -07:00

43 lines
799 B
TypeScript

//// [tests/cases/compiler/jsEmitIntersectionProperty.ts] ////
//// [globals.d.ts]
// #37015 - test asserts lack of crash
declare class CoreObject {
static extend<
Statics,
Instance extends B1,
T1,
B1
>(
this: Statics & { new(): Instance },
arg1: T1
): Readonly<Statics> & { new(): T1 & Instance };
toString(): string;
}
declare class Mixin<T> {
static create<T>(
args?: T
): Mixin<T>;
}
declare const Observable: Mixin<{}>
declare class EmberObject extends CoreObject.extend(Observable) {}
declare class CoreView extends EmberObject.extend({}) {}
declare class Component extends CoreView.extend({}) {}
//// [index.js]
export class MyComponent extends Component {
}
//// [index.d.ts]
export class MyComponent extends Component {
}