mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Merge branch 'master' into emit-module-in-strict-mode
This commit is contained in:
17
tests/cases/compiler/bangInModuleName.ts
Normal file
17
tests/cases/compiler/bangInModuleName.ts
Normal 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';
|
||||
12
tests/cases/compiler/errorElaboration.ts
Normal file
12
tests/cases/compiler/errorElaboration.ts
Normal 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);
|
||||
Reference in New Issue
Block a user