Merge branch 'master' into emit-module-in-strict-mode

This commit is contained in:
Wesley Wigham
2015-11-23 17:06:02 -08:00
10 changed files with 153 additions and 10 deletions

View File

@@ -0,0 +1,17 @@
// @module: amd
// @filename: a.d.ts
declare module "http" {
}
declare module 'intern/dojo/node!http' {
import http = require('http');
export = http;
}
// @filename: a.ts
/// <reference path="a.d.ts"/>
import * as http from 'intern/dojo/node!http';

View File

@@ -0,0 +1,12 @@
// Repro for #5712
interface Ref<T> {
prop: T;
}
interface Container<T> {
m1: Container<Ref<T>>;
m2: T;
}
declare function foo(x: () => Container<Ref<number>>): void;
let a: () => Container<Ref<string>>;
foo(a);