Renamed test.
This commit is contained in:
parent
cd399fb49b
commit
d989e10c49
|
@ -1,10 +0,0 @@
|
|||
interface IDirectiveLinkFn<TScope> {
|
||||
(scope: TScope): void;
|
||||
}
|
||||
|
||||
interface IDirectivePrePost<TScope> {
|
||||
pre?: IDirectiveLinkFn<TScope>;
|
||||
post?: IDirectiveLinkFn<TScope>;
|
||||
}
|
||||
|
||||
export let blah: IDirectiveLinkFn<number> | IDirectivePrePost<number> = (x: string) => {}
|
18
tests/cases/compiler/errorsWithInvokablesInUnions01.ts
Normal file
18
tests/cases/compiler/errorsWithInvokablesInUnions01.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
interface ConstructableA {
|
||||
new(): { somePropA: any };
|
||||
}
|
||||
|
||||
interface IDirectiveLinkFn<TScope> {
|
||||
(scope: TScope): void;
|
||||
}
|
||||
|
||||
interface IDirectivePrePost<TScope> {
|
||||
pre?: IDirectiveLinkFn<TScope>;
|
||||
post?: IDirectiveLinkFn<TScope>;
|
||||
}
|
||||
|
||||
export let blah: IDirectiveLinkFn<number> | ConstructableA | IDirectivePrePost<number> = (x: string) => {}
|
||||
|
||||
export let ctor: IDirectiveLinkFn<number> | ConstructableA | IDirectivePrePost<number> = class {
|
||||
someUnaccountedProp: any;
|
||||
}
|
Loading…
Reference in a new issue