mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-12 01:48:33 -05:00
Renamed test.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user