mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 12:51:30 -05:00
Make sure to instantiate merged type parameters
This commit is contained in:
8
tests/cases/compiler/instantiateCrossFileMerge.ts
Normal file
8
tests/cases/compiler/instantiateCrossFileMerge.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
// @filename: first.ts
|
||||
declare class P<R> {
|
||||
constructor(callback: (resolve: (value: R) => void) => void);
|
||||
}
|
||||
|
||||
// @filename: second.ts
|
||||
interface P<R> { }
|
||||
new P<string>(r => { r('foo') });
|
||||
Reference in New Issue
Block a user