Make sure to instantiate merged type parameters

This commit is contained in:
Nathan Shively-Sanders
2016-05-20 10:59:05 -07:00
parent f95f51fefc
commit 3bdfd8f477
5 changed files with 72 additions and 1 deletions

View 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') });