-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5759 from Microsoft/bangInModuleNames
do not treat modules with '!' in names any specially
- Loading branch information
Showing
5 changed files
with
83 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//// [tests/cases/compiler/bangInModuleName.ts] //// | ||
|
||
//// [a.d.ts] | ||
|
||
|
||
declare module "http" { | ||
} | ||
|
||
declare module 'intern/dojo/node!http' { | ||
import http = require('http'); | ||
export = http; | ||
} | ||
|
||
//// [a.ts] | ||
|
||
/// <reference path="a.d.ts"/> | ||
|
||
import * as http from 'intern/dojo/node!http'; | ||
|
||
//// [a.js] | ||
/// <reference path="a.d.ts"/> | ||
define(["require", "exports"], function (require, exports) { | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
=== tests/cases/compiler/a.ts === | ||
|
||
/// <reference path="a.d.ts"/> | ||
|
||
import * as http from 'intern/dojo/node!http'; | ||
>http : Symbol(http, Decl(a.ts, 3, 6)) | ||
|
||
=== tests/cases/compiler/a.d.ts === | ||
|
||
|
||
declare module "http" { | ||
} | ||
|
||
declare module 'intern/dojo/node!http' { | ||
import http = require('http'); | ||
>http : Symbol(http, Decl(a.d.ts, 5, 40)) | ||
|
||
export = http; | ||
>http : Symbol(http, Decl(a.d.ts, 5, 40)) | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
=== tests/cases/compiler/a.ts === | ||
|
||
/// <reference path="a.d.ts"/> | ||
|
||
import * as http from 'intern/dojo/node!http'; | ||
>http : typeof http | ||
|
||
=== tests/cases/compiler/a.d.ts === | ||
|
||
|
||
declare module "http" { | ||
} | ||
|
||
declare module 'intern/dojo/node!http' { | ||
import http = require('http'); | ||
>http : typeof http | ||
|
||
export = http; | ||
>http : typeof http | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'; |