mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-18 07:29:16 -05:00
Added test.
This commit is contained in:
10
tests/cases/compiler/errorsWithCallablesInUnions01.ts
Normal file
10
tests/cases/compiler/errorsWithCallablesInUnions01.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
interface IDirectiveLinkFn<TScope> {
|
||||
(scope: TScope): void;
|
||||
}
|
||||
|
||||
interface IDirectivePrePost<TScope> {
|
||||
pre?: IDirectiveLinkFn<TScope>;
|
||||
post?: IDirectiveLinkFn<TScope>;
|
||||
}
|
||||
|
||||
export let blah: IDirectiveLinkFn<number> | IDirectivePrePost<number> = (x: string) => {}
|
||||
Reference in New Issue
Block a user