mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Merge pull request #4383 from Microsoft/cleanHarnessOptionLoading
Clean harness option loading
This commit is contained in:
commit
bccd1762f2
396 files changed
+1385
-1662
No files matched your search
@@ -44,10 +44,10 @@ class CompilerBaselineRunner extends RunnerBase {
|
||||
// Everything declared here should be cleared out in the "after" callback.
|
||||
let justName: string;
|
||||
let content: string;
|
||||
let testCaseContent: { settings: Harness.TestCaseParser.CompilerSetting[]; testUnitData: Harness.TestCaseParser.TestUnitData[]; };
|
||||
let testCaseContent: { settings: Harness.TestCaseParser.CompilerSettings; testUnitData: Harness.TestCaseParser.TestUnitData[]; };
|
||||
|
||||
let units: Harness.TestCaseParser.TestUnitData[];
|
||||
let tcSettings: Harness.TestCaseParser.CompilerSetting[];
|
||||
let tcSettings: Harness.TestCaseParser.CompilerSettings;
|
||||
|
||||
let lastUnit: Harness.TestCaseParser.TestUnitData;
|
||||
let rootDir: string;
|
||||
@@ -61,15 +61,12 @@ class CompilerBaselineRunner extends RunnerBase {
|
||||
let otherFiles: { unitName: string; content: string }[];
|
||||
let harnessCompiler: Harness.Compiler.HarnessCompiler;
|
||||
|
||||
let createNewInstance = false;
|
||||
|
||||
before(() => {
|
||||
justName = fileName.replace(/^.*[\\\/]/, ""); // strips the fileName from the path.
|
||||
content = Harness.IO.readFile(fileName);
|
||||
testCaseContent = Harness.TestCaseParser.makeUnitsFromTest(content, fileName);
|
||||
units = testCaseContent.testUnitData;
|
||||
tcSettings = testCaseContent.settings;
|
||||
createNewInstance = false;
|
||||
lastUnit = units[units.length - 1];
|
||||
rootDir = lastUnit.originalFilePath.indexOf("conformance") === -1 ? "tests/cases/compiler/" : lastUnit.originalFilePath.substring(0, lastUnit.originalFilePath.lastIndexOf("/")) + "/";
|
||||
harnessCompiler = Harness.Compiler.getCompiler();
|
||||
@@ -100,27 +97,6 @@ class CompilerBaselineRunner extends RunnerBase {
|
||||
});
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
/* The compiler doesn't handle certain flags flipping during a single compilation setting. Tests on these flags will need
|
||||
a fresh compiler instance for themselves and then create a fresh one for the next test. Would be nice to get dev fixes
|
||||
eventually to remove this limitation. */
|
||||
for (let i = 0; i < tcSettings.length; ++i) {
|
||||
// noImplicitAny is passed to getCompiler, but target is just passed in the settings blob to setCompilerSettings
|
||||
if (!createNewInstance && (tcSettings[i].flag == "noimplicitany" || tcSettings[i].flag === "target")) {
|
||||
harnessCompiler = Harness.Compiler.getCompiler();
|
||||
harnessCompiler.setCompilerSettings(tcSettings);
|
||||
createNewInstance = true;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
if (createNewInstance) {
|
||||
harnessCompiler = Harness.Compiler.getCompiler();
|
||||
createNewInstance = false;
|
||||
}
|
||||
});
|
||||
|
||||
after(() => {
|
||||
// Mocha holds onto the closure environment of the describe callback even after the test is done.
|
||||
// Therefore we have to clean out large objects after the test is done.
|
||||
@@ -402,10 +378,6 @@ class CompilerBaselineRunner extends RunnerBase {
|
||||
else {
|
||||
this.tests.forEach(test => this.checkTestCodeOutput(test));
|
||||
}
|
||||
|
||||
describe("Cleanup after compiler baselines", () => {
|
||||
let harnessCompiler = Harness.Compiler.getCompiler();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+13
-87
@@ -29,13 +29,13 @@ module FourSlash {
|
||||
fileName: string;
|
||||
version: number;
|
||||
// File-specific options (name/value pairs)
|
||||
fileOptions: { [index: string]: string; };
|
||||
fileOptions: Harness.TestCaseParser.CompilerSettings;
|
||||
}
|
||||
|
||||
// Represents a set of parsed source files and options
|
||||
export interface FourSlashData {
|
||||
// Global options (name/value pairs)
|
||||
globalOptions: { [index: string]: string; };
|
||||
globalOptions: Harness.TestCaseParser.CompilerSettings;
|
||||
|
||||
files: FourSlashFile[];
|
||||
|
||||
@@ -117,89 +117,17 @@ module FourSlash {
|
||||
// Add cases into convertGlobalOptionsToCompilationsSettings function for the compiler to acknowledge such option from meta data
|
||||
let metadataOptionNames = {
|
||||
baselineFile: "BaselineFile",
|
||||
declaration: "declaration",
|
||||
emitThisFile: "emitThisFile", // This flag is used for testing getEmitOutput feature. It allows test-cases to indicate what file to be output in multiple files project
|
||||
fileName: "Filename",
|
||||
mapRoot: "mapRoot",
|
||||
module: "module",
|
||||
out: "out",
|
||||
outFile: "outFile",
|
||||
outDir: "outDir",
|
||||
sourceMap: "sourceMap",
|
||||
sourceRoot: "sourceRoot",
|
||||
allowNonTsExtensions: "allowNonTsExtensions",
|
||||
resolveReference: "ResolveReference", // This flag is used to specify entry file for resolve file references. The flag is only allow once per test file
|
||||
jsx: "jsx",
|
||||
};
|
||||
|
||||
// List of allowed metadata names
|
||||
let fileMetadataNames = [metadataOptionNames.fileName, metadataOptionNames.emitThisFile, metadataOptionNames.resolveReference];
|
||||
let globalMetadataNames = [metadataOptionNames.allowNonTsExtensions, metadataOptionNames.baselineFile, metadataOptionNames.declaration,
|
||||
metadataOptionNames.mapRoot, metadataOptionNames.module, metadataOptionNames.out,metadataOptionNames.outFile,
|
||||
metadataOptionNames.outDir, metadataOptionNames.sourceMap, metadataOptionNames.sourceRoot, metadataOptionNames.jsx];
|
||||
|
||||
function convertGlobalOptionsToCompilerOptions(globalOptions: { [idx: string]: string }): ts.CompilerOptions {
|
||||
function convertGlobalOptionsToCompilerOptions(globalOptions: Harness.TestCaseParser.CompilerSettings): ts.CompilerOptions {
|
||||
let settings: ts.CompilerOptions = { target: ts.ScriptTarget.ES5 };
|
||||
// Convert all property in globalOptions into ts.CompilationSettings
|
||||
for (let prop in globalOptions) {
|
||||
if (globalOptions.hasOwnProperty(prop)) {
|
||||
switch (prop) {
|
||||
case metadataOptionNames.allowNonTsExtensions:
|
||||
settings.allowNonTsExtensions = globalOptions[prop] === "true";
|
||||
break;
|
||||
case metadataOptionNames.declaration:
|
||||
settings.declaration = globalOptions[prop] === "true";
|
||||
break;
|
||||
case metadataOptionNames.mapRoot:
|
||||
settings.mapRoot = globalOptions[prop];
|
||||
break;
|
||||
case metadataOptionNames.module:
|
||||
// create appropriate external module target for CompilationSettings
|
||||
switch (globalOptions[prop]) {
|
||||
case "AMD":
|
||||
settings.module = ts.ModuleKind.AMD;
|
||||
break;
|
||||
case "CommonJS":
|
||||
settings.module = ts.ModuleKind.CommonJS;
|
||||
break;
|
||||
default:
|
||||
ts.Debug.assert(globalOptions[prop] === undefined || globalOptions[prop] === "None");
|
||||
settings.module = ts.ModuleKind.None;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case metadataOptionNames.out:
|
||||
settings.out = globalOptions[prop];
|
||||
break;
|
||||
case metadataOptionNames.outFile:
|
||||
settings.outFile = globalOptions[prop];
|
||||
break;
|
||||
case metadataOptionNames.outDir:
|
||||
settings.outDir = globalOptions[prop];
|
||||
break;
|
||||
case metadataOptionNames.sourceMap:
|
||||
settings.sourceMap = globalOptions[prop] === "true";
|
||||
break;
|
||||
case metadataOptionNames.sourceRoot:
|
||||
settings.sourceRoot = globalOptions[prop];
|
||||
break;
|
||||
case metadataOptionNames.jsx:
|
||||
switch (globalOptions[prop].toLowerCase()) {
|
||||
case "react":
|
||||
settings.jsx = ts.JsxEmit.React;
|
||||
break;
|
||||
case "preserve":
|
||||
settings.jsx = ts.JsxEmit.Preserve;
|
||||
break;
|
||||
default:
|
||||
ts.Debug.assert(globalOptions[prop] === undefined || globalOptions[prop] === "None");
|
||||
settings.jsx = ts.JsxEmit.None;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Harness.Compiler.setCompilerOptionsFromHarnessSetting(globalOptions, settings);
|
||||
return settings;
|
||||
}
|
||||
|
||||
@@ -2514,12 +2442,16 @@ module FourSlash {
|
||||
// Comment line, check for global/file @options and record them
|
||||
let match = optionRegex.exec(line.substr(2));
|
||||
if (match) {
|
||||
let globalMetadataNamesIndex = globalMetadataNames.indexOf(match[1]);
|
||||
let fileMetadataNamesIndex = fileMetadataNames.indexOf(match[1]);
|
||||
if (globalMetadataNamesIndex === -1) {
|
||||
if (fileMetadataNamesIndex === -1) {
|
||||
throw new Error(`Unrecognized metadata name "${match[1]}". Available global metadata names are: ${globalMetadataNames.join(", ")}; file metadata names are: ${fileMetadataNames.join(", ")}`);
|
||||
} else if (fileMetadataNamesIndex === fileMetadataNames.indexOf(metadataOptionNames.fileName)) {
|
||||
if (fileMetadataNamesIndex === -1) {
|
||||
// Check if the match is already existed in the global options
|
||||
if (globalOptions[match[1]] !== undefined) {
|
||||
throw new Error("Global Option : '" + match[1] + "' is already existed");
|
||||
}
|
||||
globalOptions[match[1]] = match[2];
|
||||
}
|
||||
else {
|
||||
if (fileMetadataNamesIndex === fileMetadataNames.indexOf(metadataOptionNames.fileName)) {
|
||||
// Found an @FileName directive, if this is not the first then create a new subfile
|
||||
if (currentFileContent) {
|
||||
let file = parseFileContent(currentFileContent, currentFileName, markerPositions, markers, ranges);
|
||||
@@ -2540,12 +2472,6 @@ module FourSlash {
|
||||
// Add other fileMetadata flag
|
||||
currentFileOptions[match[1]] = match[2];
|
||||
}
|
||||
} else {
|
||||
// Check if the match is already existed in the global options
|
||||
if (globalOptions[match[1]] !== undefined) {
|
||||
throw new Error("Global Option : '" + match[1] + "' is already existed");
|
||||
}
|
||||
globalOptions[match[1]] = match[2];
|
||||
}
|
||||
}
|
||||
// TODO: should be '==='?
|
||||
|
||||
+94
-239
@@ -851,9 +851,9 @@ module Harness {
|
||||
}
|
||||
|
||||
export function createSourceFileAndAssertInvariants(
|
||||
fileName: string,
|
||||
sourceText: string,
|
||||
languageVersion: ts.ScriptTarget) {
|
||||
fileName: string,
|
||||
sourceText: string,
|
||||
languageVersion: ts.ScriptTarget) {
|
||||
// We'll only assert inletiants outside of light mode.
|
||||
const shouldAssertInvariants = !Harness.lightMode;
|
||||
|
||||
@@ -883,13 +883,13 @@ module Harness {
|
||||
}
|
||||
|
||||
export function createCompilerHost(
|
||||
inputFiles: { unitName: string; content: string; }[],
|
||||
writeFile: (fn: string, contents: string, writeByteOrderMark: boolean) => void,
|
||||
scriptTarget: ts.ScriptTarget,
|
||||
useCaseSensitiveFileNames: boolean,
|
||||
// the currentDirectory is needed for rwcRunner to passed in specified current directory to compiler host
|
||||
currentDirectory?: string,
|
||||
newLineKind?: ts.NewLineKind): ts.CompilerHost {
|
||||
inputFiles: { unitName: string; content: string; }[],
|
||||
writeFile: (fn: string, contents: string, writeByteOrderMark: boolean) => void,
|
||||
scriptTarget: ts.ScriptTarget,
|
||||
useCaseSensitiveFileNames: boolean,
|
||||
// the currentDirectory is needed for rwcRunner to passed in specified current directory to compiler host
|
||||
currentDirectory?: string,
|
||||
newLineKind?: ts.NewLineKind): ts.CompilerHost {
|
||||
|
||||
// Local get canonical file name function, that depends on passed in parameter for useCaseSensitiveFileNames
|
||||
function getCanonicalFileName(fileName: string): string {
|
||||
@@ -907,7 +907,7 @@ module Harness {
|
||||
}
|
||||
};
|
||||
inputFiles.forEach(register);
|
||||
|
||||
|
||||
function getSourceFile(fn: string, languageVersion: ts.ScriptTarget) {
|
||||
fn = ts.normalizePath(fn);
|
||||
if (Object.prototype.hasOwnProperty.call(filemap, getCanonicalFileName(fn))) {
|
||||
@@ -949,16 +949,79 @@ module Harness {
|
||||
};
|
||||
}
|
||||
|
||||
interface HarnessOptions {
|
||||
useCaseSensitiveFileNames?: boolean;
|
||||
includeBuiltFile?: string;
|
||||
baselineFile?: string;
|
||||
}
|
||||
|
||||
// Additional options not already in ts.optionDeclarations
|
||||
const harnessOptionDeclarations: ts.CommandLineOption[] = [
|
||||
{ name: "allowNonTsExtensions", type: "boolean" },
|
||||
{ name: "useCaseSensitiveFileNames", type: "boolean" },
|
||||
{ name: "baselineFile", type: "string" },
|
||||
{ name: "includeBuiltFile", type: "string" },
|
||||
{ name: "fileName", type: "string" },
|
||||
{ name: "noErrorTruncation", type: "boolean" }
|
||||
];
|
||||
|
||||
let optionsIndex: ts.Map<ts.CommandLineOption>;
|
||||
function getCommandLineOption(name: string): ts.CommandLineOption {
|
||||
if (!optionsIndex) {
|
||||
optionsIndex = {};
|
||||
let optionDeclarations = harnessOptionDeclarations.concat(ts.optionDeclarations);
|
||||
for (let option of optionDeclarations) {
|
||||
optionsIndex[option.name.toLowerCase()] = option;
|
||||
}
|
||||
}
|
||||
return ts.lookUp(optionsIndex, name.toLowerCase());
|
||||
}
|
||||
|
||||
export function setCompilerOptionsFromHarnessSetting(settings: Harness.TestCaseParser.CompilerSettings, options: ts.CompilerOptions & HarnessOptions): void {
|
||||
for (let name in settings) {
|
||||
if (settings.hasOwnProperty(name)) {
|
||||
let value = settings[name];
|
||||
if (value === undefined) {
|
||||
throw new Error(`Cannot have undefined value for compiler option '${name}'.`);
|
||||
}
|
||||
let option = getCommandLineOption(name);
|
||||
if (option) {
|
||||
switch (option.type) {
|
||||
case "boolean":
|
||||
options[option.name] = value.toLowerCase() === "true";
|
||||
break;
|
||||
case "string":
|
||||
options[option.name] = value;
|
||||
break;
|
||||
// If not a primitive, the possible types are specified in what is effectively a map of options.
|
||||
default:
|
||||
let map = <ts.Map<number>>option.type;
|
||||
let key = value.toLowerCase();
|
||||
if (ts.hasProperty(map, key)) {
|
||||
options[option.name] = map[key];
|
||||
}
|
||||
else {
|
||||
throw new Error(`Unknown value '${value}' for compiler option '${name}'.`);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
throw new Error(`Unknown compiler option '${name}'.`);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export class HarnessCompiler {
|
||||
private inputFiles: { unitName: string; content: string }[] = [];
|
||||
private compileOptions: ts.CompilerOptions;
|
||||
private settings: Harness.TestCaseParser.CompilerSetting[] = [];
|
||||
private settings: Harness.TestCaseParser.CompilerSettings = {};
|
||||
|
||||
private lastErrors: ts.Diagnostic[];
|
||||
|
||||
public reset() {
|
||||
this.inputFiles = [];
|
||||
this.settings = [];
|
||||
this.settings = {};
|
||||
this.lastErrors = [];
|
||||
}
|
||||
|
||||
@@ -966,11 +1029,7 @@ module Harness {
|
||||
return this.lastErrors;
|
||||
}
|
||||
|
||||
public setCompilerSettingsFromOptions(tcSettings: ts.CompilerOptions) {
|
||||
this.settings = Object.keys(tcSettings).map(k => ({ flag: k, value: (<any>tcSettings)[k] }));
|
||||
}
|
||||
|
||||
public setCompilerSettings(tcSettings: Harness.TestCaseParser.CompilerSetting[]) {
|
||||
public setCompilerSettings(tcSettings: Harness.TestCaseParser.CompilerSettings) {
|
||||
this.settings = tcSettings;
|
||||
}
|
||||
|
||||
@@ -1006,7 +1065,7 @@ module Harness {
|
||||
otherFiles: { unitName: string; content: string }[],
|
||||
onComplete: (result: CompilerResult, program: ts.Program) => void,
|
||||
settingsCallback?: (settings: ts.CompilerOptions) => void,
|
||||
options?: ts.CompilerOptions,
|
||||
options?: ts.CompilerOptions & HarnessOptions,
|
||||
// Current directory is needed for rwcRunner to be able to use currentDirectory defined in json file
|
||||
currentDirectory?: string) {
|
||||
|
||||
@@ -1015,21 +1074,27 @@ module Harness {
|
||||
options.module = options.module || ts.ModuleKind.None;
|
||||
options.newLine = options.newLine || ts.NewLineKind.CarriageReturnLineFeed;
|
||||
options.noErrorTruncation = true;
|
||||
options.skipDefaultLibCheck = true;
|
||||
|
||||
if (settingsCallback) {
|
||||
settingsCallback(null);
|
||||
}
|
||||
|
||||
let newLine = "\r\n";
|
||||
options.skipDefaultLibCheck = true;
|
||||
|
||||
// Parse settings
|
||||
setCompilerOptionsFromHarnessSetting(this.settings, options);
|
||||
|
||||
// Files from built\local that are requested by test "@includeBuiltFiles" to be in the context.
|
||||
// Treat them as library files, so include them in build, but not in baselines.
|
||||
let includeBuiltFiles: { unitName: string; content: string }[] = [];
|
||||
if (options.includeBuiltFile) {
|
||||
let builtFileName = libFolder + options.includeBuiltFile;
|
||||
includeBuiltFiles.push({ unitName: builtFileName, content: normalizeLineEndings(IO.readFile(builtFileName), newLine) });
|
||||
}
|
||||
|
||||
let useCaseSensitiveFileNames = Harness.IO.useCaseSensitiveFileNames();
|
||||
this.settings.forEach(setCompilerOptionForSetting);
|
||||
|
||||
let useCaseSensitiveFileNames = options.useCaseSensitiveFileNames !== undefined ? options.useCaseSensitiveFileNames : Harness.IO.useCaseSensitiveFileNames();
|
||||
|
||||
let fileOutputs: GeneratedFile[] = [];
|
||||
|
||||
let programFiles = inputFiles.concat(includeBuiltFiles).map(file => file.unitName);
|
||||
@@ -1049,204 +1114,6 @@ module Harness {
|
||||
onComplete(result, program);
|
||||
|
||||
return options;
|
||||
|
||||
function setCompilerOptionForSetting(setting: Harness.TestCaseParser.CompilerSetting) {
|
||||
switch (setting.flag.toLowerCase()) {
|
||||
// "fileName", "comments", "declaration", "module", "nolib", "sourcemap", "target", "out", "outdir", "noimplicitany", "noresolve"
|
||||
case "module":
|
||||
case "modulegentarget":
|
||||
if (typeof setting.value === "string") {
|
||||
if (setting.value.toLowerCase() === "amd") {
|
||||
options.module = ts.ModuleKind.AMD;
|
||||
} else if (setting.value.toLowerCase() === "umd") {
|
||||
options.module = ts.ModuleKind.UMD;
|
||||
} else if (setting.value.toLowerCase() === "commonjs") {
|
||||
options.module = ts.ModuleKind.CommonJS;
|
||||
if (options.moduleResolution === undefined) {
|
||||
// TODO: currently we have relative module names pretty much in all tests that use CommonJS module target.
|
||||
// Such names could never be resolved in Node however classic resolution strategy still can handle them.
|
||||
// Changing all module names to relative will be a major overhaul in code (but we'll do this anyway) so as a temporary measure
|
||||
// we'll use ts.ModuleResolutionKind.Classic for CommonJS modules.
|
||||
options.moduleResolution = ts.ModuleResolutionKind.Classic;
|
||||
}
|
||||
} else if (setting.value.toLowerCase() === "system") {
|
||||
options.module = ts.ModuleKind.System;
|
||||
} else if (setting.value.toLowerCase() === "unspecified") {
|
||||
options.module = ts.ModuleKind.None;
|
||||
} else {
|
||||
throw new Error("Unknown module type " + setting.value);
|
||||
}
|
||||
} else {
|
||||
options.module = <any>setting.value;
|
||||
}
|
||||
break;
|
||||
case "moduleresolution":
|
||||
switch((setting.value || "").toLowerCase()) {
|
||||
case "classic":
|
||||
options.moduleResolution = ts.ModuleResolutionKind.Classic;
|
||||
break;
|
||||
case "node":
|
||||
options.moduleResolution = ts.ModuleResolutionKind.NodeJs;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case "target":
|
||||
case "codegentarget":
|
||||
if (typeof setting.value === "string") {
|
||||
if (setting.value.toLowerCase() === "es3") {
|
||||
options.target = ts.ScriptTarget.ES3;
|
||||
} else if (setting.value.toLowerCase() === "es5") {
|
||||
options.target = ts.ScriptTarget.ES5;
|
||||
} else if (setting.value.toLowerCase() === "es6") {
|
||||
options.target = ts.ScriptTarget.ES6;
|
||||
} else {
|
||||
throw new Error("Unknown compile target " + setting.value);
|
||||
}
|
||||
} else {
|
||||
options.target = <any>setting.value;
|
||||
}
|
||||
break;
|
||||
|
||||
case "experimentaldecorators":
|
||||
options.experimentalDecorators = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "emitdecoratormetadata":
|
||||
options.emitDecoratorMetadata = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "experimentalasyncfunctions":
|
||||
options.experimentalAsyncFunctions = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "noemithelpers":
|
||||
options.noEmitHelpers = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "noemitonerror":
|
||||
options.noEmitOnError = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "noresolve":
|
||||
options.noResolve = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "noimplicitany":
|
||||
options.noImplicitAny = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "nolib":
|
||||
options.noLib = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "out":
|
||||
case "outfileoption":
|
||||
options.out = setting.value;
|
||||
break;
|
||||
|
||||
case "outfile":
|
||||
options.outFile = setting.value;
|
||||
break;
|
||||
|
||||
case "outdiroption":
|
||||
case "outdir":
|
||||
options.outDir = setting.value;
|
||||
break;
|
||||
|
||||
case "skipdefaultlibcheck":
|
||||
options.skipDefaultLibCheck = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "sourceroot":
|
||||
options.sourceRoot = setting.value;
|
||||
break;
|
||||
|
||||
case "maproot":
|
||||
options.mapRoot = setting.value;
|
||||
break;
|
||||
|
||||
case "sourcemap":
|
||||
options.sourceMap = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "declaration":
|
||||
options.declaration = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "newline":
|
||||
if (setting.value.toLowerCase() === "crlf") {
|
||||
options.newLine = ts.NewLineKind.CarriageReturnLineFeed;
|
||||
}
|
||||
else if (setting.value.toLowerCase() === "lf") {
|
||||
options.newLine = ts.NewLineKind.LineFeed;
|
||||
}
|
||||
else {
|
||||
throw new Error("Unknown option for newLine: " + setting.value);
|
||||
}
|
||||
break;
|
||||
|
||||
case "comments":
|
||||
options.removeComments = setting.value === "false";
|
||||
break;
|
||||
|
||||
case "stripinternal":
|
||||
options.stripInternal = setting.value === "true";
|
||||
|
||||
case "usecasesensitivefilenames":
|
||||
useCaseSensitiveFileNames = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "filename":
|
||||
// Not supported yet
|
||||
break;
|
||||
|
||||
case "emitbom":
|
||||
options.emitBOM = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "errortruncation":
|
||||
options.noErrorTruncation = setting.value === "false";
|
||||
break;
|
||||
|
||||
case "preserveconstenums":
|
||||
options.preserveConstEnums = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "isolatedmodules":
|
||||
options.isolatedModules = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "suppressexcesspropertyerrors":
|
||||
options.suppressExcessPropertyErrors = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "suppressimplicitanyindexerrors":
|
||||
options.suppressImplicitAnyIndexErrors = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "includebuiltfile":
|
||||
let builtFileName = libFolder + setting.value;
|
||||
includeBuiltFiles.push({ unitName: builtFileName, content: normalizeLineEndings(IO.readFile(builtFileName), newLine) });
|
||||
break;
|
||||
|
||||
case "inlinesourcemap":
|
||||
options.inlineSourceMap = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "inlinesources":
|
||||
options.inlineSources = setting.value === "true";
|
||||
break;
|
||||
|
||||
case "jsx":
|
||||
options.jsx = setting.value.toLowerCase() === "react" ? ts.JsxEmit.React :
|
||||
setting.value.toLowerCase() === "preserve" ? ts.JsxEmit.Preserve :
|
||||
ts.JsxEmit.None;
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new Error("Unsupported compiler setting " + setting.flag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public compileDeclarationFiles(inputFiles: { unitName: string; content: string; }[],
|
||||
@@ -1571,9 +1438,8 @@ module Harness {
|
||||
|
||||
export module TestCaseParser {
|
||||
/** all the necessary information to set the right compiler settings */
|
||||
export interface CompilerSetting {
|
||||
flag: string;
|
||||
value: string;
|
||||
export interface CompilerSettings {
|
||||
[name: string]: string;
|
||||
}
|
||||
|
||||
/** All the necessary information to turn a multi file test into useful units for later compilation */
|
||||
@@ -1588,30 +1454,19 @@ module Harness {
|
||||
// Regex for parsing options in the format "@Alpha: Value of any sort"
|
||||
let optionRegex = /^[\/]{2}\s*@(\w+)\s*:\s*(\S*)/gm; // multiple matches on multiple lines
|
||||
|
||||
// List of allowed metadata names
|
||||
let fileMetadataNames = ["filename", "comments", "declaration", "module",
|
||||
"nolib", "sourcemap", "target", "out", "outdir", "noemithelpers", "noemitonerror",
|
||||
"noimplicitany", "noresolve", "newline", "normalizenewline", "emitbom",
|
||||
"errortruncation", "usecasesensitivefilenames", "preserveconstenums",
|
||||
"includebuiltfile", "suppressexcesspropertyerrors", "suppressimplicitanyindexerrors", "stripinternal",
|
||||
"isolatedmodules", "inlinesourcemap", "maproot", "sourceroot",
|
||||
"inlinesources", "emitdecoratormetadata", "experimentaldecorators",
|
||||
"skipdefaultlibcheck", "jsx"];
|
||||
|
||||
function extractCompilerSettings(content: string): CompilerSetting[] {
|
||||
|
||||
let opts: CompilerSetting[] = [];
|
||||
function extractCompilerSettings(content: string): CompilerSettings {
|
||||
let opts: CompilerSettings = {};
|
||||
|
||||
let match: RegExpExecArray;
|
||||
while ((match = optionRegex.exec(content)) != null) {
|
||||
opts.push({ flag: match[1], value: match[2] });
|
||||
opts[match[1]] = match[2];
|
||||
}
|
||||
|
||||
return opts;
|
||||
}
|
||||
|
||||
/** Given a test file containing // @FileName directives, return an array of named units of code to be added to an existing compiler instance */
|
||||
export function makeUnitsFromTest(code: string, fileName: string): { settings: CompilerSetting[]; testUnitData: TestUnitData[]; } {
|
||||
export function makeUnitsFromTest(code: string, fileName: string): { settings: CompilerSettings; testUnitData: TestUnitData[]; } {
|
||||
let settings = extractCompilerSettings(code);
|
||||
|
||||
// List of all the subfiles we've parsed out
|
||||
|
||||
@@ -4,7 +4,7 @@ tests/cases/compiler/aliasAssignments_1.ts(5,1): error TS2322: Type 'typeof "tes
|
||||
|
||||
|
||||
==== tests/cases/compiler/aliasAssignments_1.ts (2 errors) ====
|
||||
import moduleA = require("aliasAssignments_moduleA");
|
||||
import moduleA = require("./aliasAssignments_moduleA");
|
||||
var x = moduleA;
|
||||
x = 1; // Should be error
|
||||
~
|
||||
|
||||
@@ -6,7 +6,7 @@ export class someClass {
|
||||
}
|
||||
|
||||
//// [aliasAssignments_1.ts]
|
||||
import moduleA = require("aliasAssignments_moduleA");
|
||||
import moduleA = require("./aliasAssignments_moduleA");
|
||||
var x = moduleA;
|
||||
x = 1; // Should be error
|
||||
var y = 1;
|
||||
@@ -21,7 +21,7 @@ var someClass = (function () {
|
||||
})();
|
||||
exports.someClass = someClass;
|
||||
//// [aliasAssignments_1.js]
|
||||
var moduleA = require("aliasAssignments_moduleA");
|
||||
var moduleA = require("./aliasAssignments_moduleA");
|
||||
var x = moduleA;
|
||||
x = 1; // Should be error
|
||||
var y = 1;
|
||||
|
||||
@@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsage1_moduleA.ts]
|
||||
import Backbone = require("aliasUsage1_backbone");
|
||||
import Backbone = require("./aliasUsage1_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsage1_main.ts]
|
||||
import Backbone = require("aliasUsage1_backbone");
|
||||
import moduleA = require("aliasUsage1_moduleA");
|
||||
import Backbone = require("./aliasUsage1_backbone");
|
||||
import moduleA = require("./aliasUsage1_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@@ -40,7 +40,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsage1_backbone");
|
||||
var Backbone = require("./aliasUsage1_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@@ -50,7 +50,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsage1_main.js]
|
||||
var moduleA = require("aliasUsage1_moduleA");
|
||||
var moduleA = require("./aliasUsage1_moduleA");
|
||||
var C2 = (function () {
|
||||
function C2() {
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsage1_main.ts ===
|
||||
import Backbone = require("aliasUsage1_backbone");
|
||||
import Backbone = require("./aliasUsage1_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsage1_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsage1_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsage1_main.ts, 0, 50))
|
||||
import moduleA = require("./aliasUsage1_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsage1_main.ts, 0, 52))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsage1_main.ts, 1, 48))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsage1_main.ts, 1, 50))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsage1_main.ts, 2, 34))
|
||||
@@ -19,7 +19,7 @@ class C2 {
|
||||
|
||||
x: IHasVisualizationModel;
|
||||
>x : Symbol(x, Decl(aliasUsage1_main.ts, 5, 10))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsage1_main.ts, 1, 48))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsage1_main.ts, 1, 50))
|
||||
|
||||
get A() {
|
||||
>A : Symbol(A, Decl(aliasUsage1_main.ts, 6, 30), Decl(aliasUsage1_main.ts, 9, 5))
|
||||
@@ -35,7 +35,7 @@ class C2 {
|
||||
|
||||
x = moduleA;
|
||||
>x : Symbol(x, Decl(aliasUsage1_main.ts, 10, 10))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsage1_main.ts, 0, 50))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsage1_main.ts, 0, 52))
|
||||
}
|
||||
}
|
||||
=== tests/cases/compiler/aliasUsage1_backbone.ts ===
|
||||
@@ -47,11 +47,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsage1_moduleA.ts ===
|
||||
import Backbone = require("aliasUsage1_backbone");
|
||||
import Backbone = require("./aliasUsage1_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsage1_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsage1_moduleA.ts, 0, 50))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsage1_moduleA.ts, 0, 52))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsage1_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsage1_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsage1_backbone.ts, 0, 0))
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsage1_main.ts ===
|
||||
import Backbone = require("aliasUsage1_backbone");
|
||||
import Backbone = require("./aliasUsage1_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsage1_moduleA");
|
||||
import moduleA = require("./aliasUsage1_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@@ -48,7 +48,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsage1_moduleA.ts ===
|
||||
import Backbone = require("aliasUsage1_backbone");
|
||||
import Backbone = require("./aliasUsage1_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInArray_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInArray_backbone");
|
||||
import Backbone = require("./aliasUsageInArray_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInArray_main.ts]
|
||||
import Backbone = require("aliasUsageInArray_backbone");
|
||||
import moduleA = require("aliasUsageInArray_moduleA");
|
||||
import Backbone = require("./aliasUsageInArray_backbone");
|
||||
import moduleA = require("./aliasUsageInArray_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@@ -34,7 +34,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInArray_backbone");
|
||||
var Backbone = require("./aliasUsageInArray_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@@ -44,6 +44,6 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInArray_main.js]
|
||||
var moduleA = require("aliasUsageInArray_moduleA");
|
||||
var moduleA = require("./aliasUsageInArray_moduleA");
|
||||
var xs = [moduleA];
|
||||
var xs2 = [moduleA];
|
||||
@@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInArray_main.ts ===
|
||||
import Backbone = require("aliasUsageInArray_backbone");
|
||||
import Backbone = require("./aliasUsageInArray_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInArray_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInArray_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 56))
|
||||
import moduleA = require("./aliasUsageInArray_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 58))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInArray_main.ts, 1, 54))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInArray_main.ts, 1, 56))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInArray_main.ts, 2, 34))
|
||||
@@ -17,13 +17,13 @@ interface IHasVisualizationModel {
|
||||
|
||||
var xs: IHasVisualizationModel[] = [moduleA];
|
||||
>xs : Symbol(xs, Decl(aliasUsageInArray_main.ts, 6, 3))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInArray_main.ts, 1, 54))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 56))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInArray_main.ts, 1, 56))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 58))
|
||||
|
||||
var xs2: typeof moduleA[] = [moduleA];
|
||||
>xs2 : Symbol(xs2, Decl(aliasUsageInArray_main.ts, 7, 3))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 56))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 56))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 58))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInArray_main.ts, 0, 58))
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInArray_backbone.ts ===
|
||||
export class Model {
|
||||
@@ -34,11 +34,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInArray_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInArray_backbone");
|
||||
import Backbone = require("./aliasUsageInArray_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInArray_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInArray_moduleA.ts, 0, 56))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInArray_moduleA.ts, 0, 58))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInArray_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInArray_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInArray_backbone.ts, 0, 0))
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInArray_main.ts ===
|
||||
import Backbone = require("aliasUsageInArray_backbone");
|
||||
import Backbone = require("./aliasUsageInArray_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInArray_moduleA");
|
||||
import moduleA = require("./aliasUsageInArray_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@@ -36,7 +36,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInArray_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInArray_backbone");
|
||||
import Backbone = require("./aliasUsageInArray_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInFunctionExpression_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInFunctionExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInFunctionExpression_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInFunctionExpression_main.ts]
|
||||
import Backbone = require("aliasUsageInFunctionExpression_backbone");
|
||||
import moduleA = require("aliasUsageInFunctionExpression_moduleA");
|
||||
import Backbone = require("./aliasUsageInFunctionExpression_backbone");
|
||||
import moduleA = require("./aliasUsageInFunctionExpression_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@@ -33,7 +33,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInFunctionExpression_backbone");
|
||||
var Backbone = require("./aliasUsageInFunctionExpression_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@@ -43,6 +43,6 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInFunctionExpression_main.js]
|
||||
var moduleA = require("aliasUsageInFunctionExpression_moduleA");
|
||||
var moduleA = require("./aliasUsageInFunctionExpression_moduleA");
|
||||
var f = function (x) { return x; };
|
||||
f = function (x) { return moduleA; };
|
||||
@@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInFunctionExpression_main.ts ===
|
||||
import Backbone = require("aliasUsageInFunctionExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInFunctionExpression_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInFunctionExpression_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInFunctionExpression_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInFunctionExpression_main.ts, 0, 69))
|
||||
import moduleA = require("./aliasUsageInFunctionExpression_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInFunctionExpression_main.ts, 0, 71))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 1, 67))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 1, 69))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 2, 34))
|
||||
@@ -17,13 +17,13 @@ interface IHasVisualizationModel {
|
||||
var f = (x: IHasVisualizationModel) => x;
|
||||
>f : Symbol(f, Decl(aliasUsageInFunctionExpression_main.ts, 5, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInFunctionExpression_main.ts, 5, 9))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 1, 67))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInFunctionExpression_main.ts, 1, 69))
|
||||
>x : Symbol(x, Decl(aliasUsageInFunctionExpression_main.ts, 5, 9))
|
||||
|
||||
f = (x) => moduleA;
|
||||
>f : Symbol(f, Decl(aliasUsageInFunctionExpression_main.ts, 5, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInFunctionExpression_main.ts, 6, 5))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInFunctionExpression_main.ts, 0, 69))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInFunctionExpression_main.ts, 0, 71))
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInFunctionExpression_backbone.ts ===
|
||||
export class Model {
|
||||
@@ -34,11 +34,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInFunctionExpression_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInFunctionExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInFunctionExpression_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInFunctionExpression_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInFunctionExpression_moduleA.ts, 0, 69))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInFunctionExpression_moduleA.ts, 0, 71))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInFunctionExpression_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInFunctionExpression_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInFunctionExpression_backbone.ts, 0, 0))
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInFunctionExpression_main.ts ===
|
||||
import Backbone = require("aliasUsageInFunctionExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInFunctionExpression_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInFunctionExpression_moduleA");
|
||||
import moduleA = require("./aliasUsageInFunctionExpression_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@@ -37,7 +37,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInFunctionExpression_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInFunctionExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInFunctionExpression_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInGenericFunction_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInGenericFunction_main.ts]
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import moduleA = require("aliasUsageInGenericFunction_moduleA");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
import moduleA = require("./aliasUsageInGenericFunction_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@@ -37,7 +37,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
var Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@@ -47,7 +47,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInGenericFunction_main.js]
|
||||
var moduleA = require("aliasUsageInGenericFunction_moduleA");
|
||||
var moduleA = require("./aliasUsageInGenericFunction_moduleA");
|
||||
function foo(x) {
|
||||
return x;
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInGenericFunction_main.ts ===
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInGenericFunction_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInGenericFunction_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInGenericFunction_main.ts, 0, 66))
|
||||
import moduleA = require("./aliasUsageInGenericFunction_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInGenericFunction_main.ts, 0, 68))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 64))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 66))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 2, 34))
|
||||
@@ -18,7 +18,7 @@ function foo<T extends { a: IHasVisualizationModel }>(x: T) {
|
||||
>foo : Symbol(foo, Decl(aliasUsageInGenericFunction_main.ts, 4, 1))
|
||||
>T : Symbol(T, Decl(aliasUsageInGenericFunction_main.ts, 5, 13))
|
||||
>a : Symbol(a, Decl(aliasUsageInGenericFunction_main.ts, 5, 24))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 64))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 66))
|
||||
>x : Symbol(x, Decl(aliasUsageInGenericFunction_main.ts, 5, 54))
|
||||
>T : Symbol(T, Decl(aliasUsageInGenericFunction_main.ts, 5, 13))
|
||||
|
||||
@@ -29,13 +29,13 @@ var r = foo({ a: moduleA });
|
||||
>r : Symbol(r, Decl(aliasUsageInGenericFunction_main.ts, 8, 3))
|
||||
>foo : Symbol(foo, Decl(aliasUsageInGenericFunction_main.ts, 4, 1))
|
||||
>a : Symbol(a, Decl(aliasUsageInGenericFunction_main.ts, 8, 13))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInGenericFunction_main.ts, 0, 66))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInGenericFunction_main.ts, 0, 68))
|
||||
|
||||
var r2 = foo({ a: <IHasVisualizationModel>null });
|
||||
>r2 : Symbol(r2, Decl(aliasUsageInGenericFunction_main.ts, 9, 3))
|
||||
>foo : Symbol(foo, Decl(aliasUsageInGenericFunction_main.ts, 4, 1))
|
||||
>a : Symbol(a, Decl(aliasUsageInGenericFunction_main.ts, 9, 14))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 64))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInGenericFunction_main.ts, 1, 66))
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInGenericFunction_backbone.ts ===
|
||||
export class Model {
|
||||
@@ -46,11 +46,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInGenericFunction_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInGenericFunction_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInGenericFunction_moduleA.ts, 0, 66))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInGenericFunction_moduleA.ts, 0, 68))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInGenericFunction_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInGenericFunction_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInGenericFunction_backbone.ts, 0, 0))
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInGenericFunction_main.ts ===
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInGenericFunction_moduleA");
|
||||
import moduleA = require("./aliasUsageInGenericFunction_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@@ -52,7 +52,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInGenericFunction_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInGenericFunction_backbone");
|
||||
import Backbone = require("./aliasUsageInGenericFunction_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInIndexerOfClass_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInIndexerOfClass_main.ts]
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import moduleA = require("aliasUsageInIndexerOfClass_moduleA");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
import moduleA = require("./aliasUsageInIndexerOfClass_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@@ -39,7 +39,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
var Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@@ -49,7 +49,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInIndexerOfClass_main.js]
|
||||
var moduleA = require("aliasUsageInIndexerOfClass_moduleA");
|
||||
var moduleA = require("./aliasUsageInIndexerOfClass_moduleA");
|
||||
var N = (function () {
|
||||
function N() {
|
||||
this.x = moduleA;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInIndexerOfClass_main.ts ===
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInIndexerOfClass_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 65))
|
||||
import moduleA = require("./aliasUsageInIndexerOfClass_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 67))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 63))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 65))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 2, 34))
|
||||
@@ -19,22 +19,22 @@ class N {
|
||||
|
||||
[idx: string]: IHasVisualizationModel
|
||||
>idx : Symbol(idx, Decl(aliasUsageInIndexerOfClass_main.ts, 6, 5))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 63))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 65))
|
||||
|
||||
x = moduleA;
|
||||
>x : Symbol(x, Decl(aliasUsageInIndexerOfClass_main.ts, 6, 41))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 65))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 67))
|
||||
}
|
||||
class N2 {
|
||||
>N2 : Symbol(N2, Decl(aliasUsageInIndexerOfClass_main.ts, 8, 1))
|
||||
|
||||
[idx: string]: typeof moduleA
|
||||
>idx : Symbol(idx, Decl(aliasUsageInIndexerOfClass_main.ts, 10, 5))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 65))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInIndexerOfClass_main.ts, 0, 67))
|
||||
|
||||
x: IHasVisualizationModel;
|
||||
>x : Symbol(x, Decl(aliasUsageInIndexerOfClass_main.ts, 10, 33))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 63))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInIndexerOfClass_main.ts, 1, 65))
|
||||
}
|
||||
=== tests/cases/compiler/aliasUsageInIndexerOfClass_backbone.ts ===
|
||||
export class Model {
|
||||
@@ -45,11 +45,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInIndexerOfClass_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInIndexerOfClass_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInIndexerOfClass_moduleA.ts, 0, 65))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInIndexerOfClass_moduleA.ts, 0, 67))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInIndexerOfClass_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInIndexerOfClass_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInIndexerOfClass_backbone.ts, 0, 0))
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInIndexerOfClass_main.ts ===
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInIndexerOfClass_moduleA");
|
||||
import moduleA = require("./aliasUsageInIndexerOfClass_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@@ -45,7 +45,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInIndexerOfClass_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInIndexerOfClass_backbone");
|
||||
import Backbone = require("./aliasUsageInIndexerOfClass_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInObjectLiteral_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInObjectLiteral_main.ts]
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import moduleA = require("aliasUsageInObjectLiteral_moduleA");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
import moduleA = require("./aliasUsageInObjectLiteral_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@@ -34,7 +34,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
var Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@@ -44,7 +44,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInObjectLiteral_main.js]
|
||||
var moduleA = require("aliasUsageInObjectLiteral_moduleA");
|
||||
var moduleA = require("./aliasUsageInObjectLiteral_moduleA");
|
||||
var a = { x: moduleA };
|
||||
var b = { x: moduleA };
|
||||
var c = { y: { z: moduleA } };
|
||||
@@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInObjectLiteral_main.ts ===
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInObjectLiteral_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInObjectLiteral_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64))
|
||||
import moduleA = require("./aliasUsageInObjectLiteral_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 66))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 62))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 64))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 2, 34))
|
||||
@@ -17,25 +17,25 @@ interface IHasVisualizationModel {
|
||||
var a: { x: typeof moduleA } = { x: moduleA };
|
||||
>a : Symbol(a, Decl(aliasUsageInObjectLiteral_main.ts, 5, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 5, 8))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 66))
|
||||
>x : Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 5, 32))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 66))
|
||||
|
||||
var b: { x: IHasVisualizationModel } = { x: moduleA };
|
||||
>b : Symbol(b, Decl(aliasUsageInObjectLiteral_main.ts, 6, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 6, 8))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 62))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 64))
|
||||
>x : Symbol(x, Decl(aliasUsageInObjectLiteral_main.ts, 6, 40))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 66))
|
||||
|
||||
var c: { y: { z: IHasVisualizationModel } } = { y: { z: moduleA } };
|
||||
>c : Symbol(c, Decl(aliasUsageInObjectLiteral_main.ts, 7, 3))
|
||||
>y : Symbol(y, Decl(aliasUsageInObjectLiteral_main.ts, 7, 8))
|
||||
>z : Symbol(z, Decl(aliasUsageInObjectLiteral_main.ts, 7, 13))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 62))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInObjectLiteral_main.ts, 1, 64))
|
||||
>y : Symbol(y, Decl(aliasUsageInObjectLiteral_main.ts, 7, 47))
|
||||
>z : Symbol(z, Decl(aliasUsageInObjectLiteral_main.ts, 7, 52))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 64))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInObjectLiteral_main.ts, 0, 66))
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInObjectLiteral_backbone.ts ===
|
||||
export class Model {
|
||||
@@ -46,11 +46,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInObjectLiteral_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInObjectLiteral_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInObjectLiteral_moduleA.ts, 0, 64))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInObjectLiteral_moduleA.ts, 0, 66))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInObjectLiteral_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInObjectLiteral_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInObjectLiteral_backbone.ts, 0, 0))
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInObjectLiteral_main.ts ===
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInObjectLiteral_moduleA");
|
||||
import moduleA = require("./aliasUsageInObjectLiteral_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@@ -50,7 +50,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInObjectLiteral_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInObjectLiteral_backbone");
|
||||
import Backbone = require("./aliasUsageInObjectLiteral_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInOrExpression_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInOrExpression_main.ts]
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import moduleA = require("aliasUsageInOrExpression_moduleA");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
import moduleA = require("./aliasUsageInOrExpression_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@@ -37,7 +37,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
var Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@@ -47,7 +47,7 @@ var VisualizationModel = (function (_super) {
|
||||
})(Backbone.Model);
|
||||
exports.VisualizationModel = VisualizationModel;
|
||||
//// [aliasUsageInOrExpression_main.js]
|
||||
var moduleA = require("aliasUsageInOrExpression_moduleA");
|
||||
var moduleA = require("./aliasUsageInOrExpression_moduleA");
|
||||
var i;
|
||||
var d1 = i || moduleA;
|
||||
var d2 = i || moduleA;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInOrExpression_main.ts ===
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInOrExpression_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInOrExpression_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
import moduleA = require("./aliasUsageInOrExpression_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 2, 34))
|
||||
@@ -16,42 +16,42 @@ interface IHasVisualizationModel {
|
||||
}
|
||||
var i: IHasVisualizationModel;
|
||||
>i : Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
|
||||
var d1 = i || moduleA;
|
||||
>d1 : Symbol(d1, Decl(aliasUsageInOrExpression_main.ts, 6, 3))
|
||||
>i : Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
|
||||
var d2: IHasVisualizationModel = i || moduleA;
|
||||
>d2 : Symbol(d2, Decl(aliasUsageInOrExpression_main.ts, 7, 3), Decl(aliasUsageInOrExpression_main.ts, 8, 3))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>i : Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
|
||||
var d2: IHasVisualizationModel = moduleA || i;
|
||||
>d2 : Symbol(d2, Decl(aliasUsageInOrExpression_main.ts, 7, 3), Decl(aliasUsageInOrExpression_main.ts, 8, 3))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
>i : Symbol(i, Decl(aliasUsageInOrExpression_main.ts, 5, 3))
|
||||
|
||||
var e: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null || { x: moduleA };
|
||||
>e : Symbol(e, Decl(aliasUsageInOrExpression_main.ts, 9, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 8))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 41))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 9, 79))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
|
||||
var f: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null ? { x: moduleA } : null;
|
||||
>f : Symbol(f, Decl(aliasUsageInOrExpression_main.ts, 10, 3))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 8))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 41))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 61))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInOrExpression_main.ts, 1, 63))
|
||||
>x : Symbol(x, Decl(aliasUsageInOrExpression_main.ts, 10, 78))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 63))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInOrExpression_main.ts, 0, 65))
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInOrExpression_backbone.ts ===
|
||||
export class Model {
|
||||
@@ -62,11 +62,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInOrExpression_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 63))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 65))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInOrExpression_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInOrExpression_backbone.ts, 0, 0))
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInOrExpression_main.ts ===
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInOrExpression_moduleA");
|
||||
import moduleA = require("./aliasUsageInOrExpression_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@@ -74,7 +74,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInOrExpression_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInOrExpression_backbone");
|
||||
import Backbone = require("./aliasUsageInOrExpression_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInTypeArgumentOfExtendsClause_main.ts]
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import moduleA = require("aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@@ -37,7 +37,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
var Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
@@ -52,7 +52,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var moduleA = require("aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
var moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
var C = (function () {
|
||||
function C() {
|
||||
}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_main.ts ===
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 78))
|
||||
import moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 80))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 76))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 78))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 2, 34))
|
||||
@@ -17,7 +17,7 @@ interface IHasVisualizationModel {
|
||||
class C<T extends IHasVisualizationModel> {
|
||||
>C : Symbol(C, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 4, 1))
|
||||
>T : Symbol(T, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 5, 8))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 76))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 78))
|
||||
|
||||
x: T;
|
||||
>x : Symbol(x, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 5, 43))
|
||||
@@ -26,11 +26,11 @@ class C<T extends IHasVisualizationModel> {
|
||||
class D extends C<IHasVisualizationModel> {
|
||||
>D : Symbol(D, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 7, 1))
|
||||
>C : Symbol(C, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 4, 1))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 76))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 1, 78))
|
||||
|
||||
x = moduleA;
|
||||
>x : Symbol(x, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 8, 43))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 78))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInTypeArgumentOfExtendsClause_main.ts, 0, 80))
|
||||
}
|
||||
=== tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_backbone.ts ===
|
||||
export class Model {
|
||||
@@ -41,11 +41,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts, 0, 78))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts, 0, 80))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInTypeArgumentOfExtendsClause_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInTypeArgumentOfExtendsClause_backbone.ts, 0, 0))
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_main.ts ===
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
import moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@@ -41,7 +41,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInTypeArgumentOfExtendsClause_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
import Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@@ -6,14 +6,14 @@ export class Model {
|
||||
}
|
||||
|
||||
//// [aliasUsageInVarAssignment_moduleA.ts]
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
// interesting stuff here
|
||||
}
|
||||
|
||||
//// [aliasUsageInVarAssignment_main.ts]
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import moduleA = require("aliasUsageInVarAssignment_moduleA");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
import moduleA = require("./aliasUsageInVarAssignment_moduleA");
|
||||
interface IHasVisualizationModel {
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
}
|
||||
@@ -33,7 +33,7 @@ var __extends = (this && this.__extends) || function (d, b) {
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
var Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
var Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
var VisualizationModel = (function (_super) {
|
||||
__extends(VisualizationModel, _super);
|
||||
function VisualizationModel() {
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
=== tests/cases/compiler/aliasUsageInVarAssignment_main.ts ===
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInVarAssignment_main.ts, 0, 0))
|
||||
|
||||
import moduleA = require("aliasUsageInVarAssignment_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInVarAssignment_main.ts, 0, 64))
|
||||
import moduleA = require("./aliasUsageInVarAssignment_moduleA");
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInVarAssignment_main.ts, 0, 66))
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 1, 62))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 1, 64))
|
||||
|
||||
VisualizationModel: typeof Backbone.Model;
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 2, 34))
|
||||
@@ -16,11 +16,11 @@ interface IHasVisualizationModel {
|
||||
}
|
||||
var i: IHasVisualizationModel;
|
||||
>i : Symbol(i, Decl(aliasUsageInVarAssignment_main.ts, 5, 3))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 1, 62))
|
||||
>IHasVisualizationModel : Symbol(IHasVisualizationModel, Decl(aliasUsageInVarAssignment_main.ts, 1, 64))
|
||||
|
||||
var m: typeof moduleA = i;
|
||||
>m : Symbol(m, Decl(aliasUsageInVarAssignment_main.ts, 6, 3))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInVarAssignment_main.ts, 0, 64))
|
||||
>moduleA : Symbol(moduleA, Decl(aliasUsageInVarAssignment_main.ts, 0, 66))
|
||||
>i : Symbol(i, Decl(aliasUsageInVarAssignment_main.ts, 5, 3))
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInVarAssignment_backbone.ts ===
|
||||
@@ -32,11 +32,11 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInVarAssignment_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInVarAssignment_moduleA.ts, 0, 0))
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInVarAssignment_moduleA.ts, 0, 64))
|
||||
>VisualizationModel : Symbol(VisualizationModel, Decl(aliasUsageInVarAssignment_moduleA.ts, 0, 66))
|
||||
>Backbone.Model : Symbol(Backbone.Model, Decl(aliasUsageInVarAssignment_backbone.ts, 0, 0))
|
||||
>Backbone : Symbol(Backbone, Decl(aliasUsageInVarAssignment_moduleA.ts, 0, 0))
|
||||
>Model : Symbol(Backbone.Model, Decl(aliasUsageInVarAssignment_backbone.ts, 0, 0))
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
=== tests/cases/compiler/aliasUsageInVarAssignment_main.ts ===
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
import moduleA = require("aliasUsageInVarAssignment_moduleA");
|
||||
import moduleA = require("./aliasUsageInVarAssignment_moduleA");
|
||||
>moduleA : typeof moduleA
|
||||
|
||||
interface IHasVisualizationModel {
|
||||
@@ -32,7 +32,7 @@ export class Model {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/aliasUsageInVarAssignment_moduleA.ts ===
|
||||
import Backbone = require("aliasUsageInVarAssignment_backbone");
|
||||
import Backbone = require("./aliasUsageInVarAssignment_backbone");
|
||||
>Backbone : typeof Backbone
|
||||
|
||||
export class VisualizationModel extends Backbone.Model {
|
||||
|
||||
@@ -9,8 +9,8 @@ export function b(a: any): any { return null; }
|
||||
//// [aliasUsedAsNameValue_2.ts]
|
||||
///<reference path='aliasUsedAsNameValue_0.ts' />
|
||||
///<reference path='aliasUsedAsNameValue_1.ts' />
|
||||
import mod = require("aliasUsedAsNameValue_0");
|
||||
import b = require("aliasUsedAsNameValue_1");
|
||||
import mod = require("./aliasUsedAsNameValue_0");
|
||||
import b = require("./aliasUsedAsNameValue_1");
|
||||
|
||||
export var a = function () {
|
||||
//var x = mod.id; // TODO needed hack that mod is loaded
|
||||
@@ -25,8 +25,8 @@ exports.b = b;
|
||||
//// [aliasUsedAsNameValue_2.js]
|
||||
///<reference path='aliasUsedAsNameValue_0.ts' />
|
||||
///<reference path='aliasUsedAsNameValue_1.ts' />
|
||||
var mod = require("aliasUsedAsNameValue_0");
|
||||
var b = require("aliasUsedAsNameValue_1");
|
||||
var mod = require("./aliasUsedAsNameValue_0");
|
||||
var b = require("./aliasUsedAsNameValue_1");
|
||||
exports.a = function () {
|
||||
//var x = mod.id; // TODO needed hack that mod is loaded
|
||||
b.b(mod);
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
=== tests/cases/compiler/aliasUsedAsNameValue_2.ts ===
|
||||
///<reference path='aliasUsedAsNameValue_0.ts' />
|
||||
///<reference path='aliasUsedAsNameValue_1.ts' />
|
||||
import mod = require("aliasUsedAsNameValue_0");
|
||||
import mod = require("./aliasUsedAsNameValue_0");
|
||||
>mod : Symbol(mod, Decl(aliasUsedAsNameValue_2.ts, 0, 0))
|
||||
|
||||
import b = require("aliasUsedAsNameValue_1");
|
||||
>b : Symbol(b, Decl(aliasUsedAsNameValue_2.ts, 2, 47))
|
||||
import b = require("./aliasUsedAsNameValue_1");
|
||||
>b : Symbol(b, Decl(aliasUsedAsNameValue_2.ts, 2, 49))
|
||||
|
||||
export var a = function () {
|
||||
>a : Symbol(a, Decl(aliasUsedAsNameValue_2.ts, 5, 10))
|
||||
@@ -13,7 +13,7 @@ export var a = function () {
|
||||
//var x = mod.id; // TODO needed hack that mod is loaded
|
||||
b.b(mod);
|
||||
>b.b : Symbol(b.b, Decl(aliasUsedAsNameValue_1.ts, 0, 0))
|
||||
>b : Symbol(b, Decl(aliasUsedAsNameValue_2.ts, 2, 47))
|
||||
>b : Symbol(b, Decl(aliasUsedAsNameValue_2.ts, 2, 49))
|
||||
>b : Symbol(b.b, Decl(aliasUsedAsNameValue_1.ts, 0, 0))
|
||||
>mod : Symbol(mod, Decl(aliasUsedAsNameValue_2.ts, 0, 0))
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
=== tests/cases/compiler/aliasUsedAsNameValue_2.ts ===
|
||||
///<reference path='aliasUsedAsNameValue_0.ts' />
|
||||
///<reference path='aliasUsedAsNameValue_1.ts' />
|
||||
import mod = require("aliasUsedAsNameValue_0");
|
||||
import mod = require("./aliasUsedAsNameValue_0");
|
||||
>mod : typeof mod
|
||||
|
||||
import b = require("aliasUsedAsNameValue_1");
|
||||
import b = require("./aliasUsedAsNameValue_1");
|
||||
>b : typeof b
|
||||
|
||||
export var a = function () {
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@ tests/cases/compiler/aliasWithInterfaceExportAssignmentUsedInVarInitializer_1.ts
|
||||
|
||||
|
||||
==== tests/cases/compiler/aliasWithInterfaceExportAssignmentUsedInVarInitializer_1.ts (1 errors) ====
|
||||
import moduleA = require("aliasWithInterfaceExportAssignmentUsedInVarInitializer_0");
|
||||
import moduleA = require("./aliasWithInterfaceExportAssignmentUsedInVarInitializer_0");
|
||||
var d = b.q3;
|
||||
~
|
||||
!!! error TS2304: Cannot find name 'b'.
|
||||
|
||||
@@ -7,7 +7,7 @@ interface c {
|
||||
export = c;
|
||||
|
||||
//// [aliasWithInterfaceExportAssignmentUsedInVarInitializer_1.ts]
|
||||
import moduleA = require("aliasWithInterfaceExportAssignmentUsedInVarInitializer_0");
|
||||
import moduleA = require("./aliasWithInterfaceExportAssignmentUsedInVarInitializer_0");
|
||||
var d = b.q3;
|
||||
|
||||
//// [aliasWithInterfaceExportAssignmentUsedInVarInitializer_0.js]
|
||||
|
||||
@@ -9,7 +9,7 @@ export = Car;
|
||||
|
||||
//// [arrayOfExportedClass_1.ts]
|
||||
///<reference path='arrayOfExportedClass_0.ts'/>
|
||||
import Car = require('arrayOfExportedClass_0');
|
||||
import Car = require('./arrayOfExportedClass_0');
|
||||
|
||||
class Road {
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
=== tests/cases/compiler/arrayOfExportedClass_1.ts ===
|
||||
///<reference path='arrayOfExportedClass_0.ts'/>
|
||||
import Car = require('arrayOfExportedClass_0');
|
||||
import Car = require('./arrayOfExportedClass_0');
|
||||
>Car : Symbol(Car, Decl(arrayOfExportedClass_1.ts, 0, 0))
|
||||
|
||||
class Road {
|
||||
>Road : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 47))
|
||||
>Road : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 49))
|
||||
|
||||
public cars: Car[];
|
||||
>cars : Symbol(cars, Decl(arrayOfExportedClass_1.ts, 3, 12))
|
||||
@@ -17,14 +17,14 @@ class Road {
|
||||
|
||||
this.cars = cars;
|
||||
>this.cars : Symbol(cars, Decl(arrayOfExportedClass_1.ts, 3, 12))
|
||||
>this : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 47))
|
||||
>this : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 49))
|
||||
>cars : Symbol(cars, Decl(arrayOfExportedClass_1.ts, 3, 12))
|
||||
>cars : Symbol(cars, Decl(arrayOfExportedClass_1.ts, 7, 19))
|
||||
}
|
||||
}
|
||||
|
||||
export = Road;
|
||||
>Road : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 47))
|
||||
>Road : Symbol(Road, Decl(arrayOfExportedClass_1.ts, 1, 49))
|
||||
|
||||
=== tests/cases/compiler/arrayOfExportedClass_0.ts ===
|
||||
class Car {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/arrayOfExportedClass_1.ts ===
|
||||
///<reference path='arrayOfExportedClass_0.ts'/>
|
||||
import Car = require('arrayOfExportedClass_0');
|
||||
import Car = require('./arrayOfExportedClass_0');
|
||||
>Car : typeof Car
|
||||
|
||||
class Road {
|
||||
|
||||
@@ -6,7 +6,7 @@ export module m {
|
||||
}
|
||||
|
||||
//// [chainedImportAlias_file1.ts]
|
||||
import x = require('chainedImportAlias_file0');
|
||||
import x = require('./chainedImportAlias_file0');
|
||||
import y = x;
|
||||
y.m.foo();
|
||||
|
||||
@@ -18,6 +18,6 @@ var m;
|
||||
m.foo = foo;
|
||||
})(m = exports.m || (exports.m = {}));
|
||||
//// [chainedImportAlias_file1.js]
|
||||
var x = require('chainedImportAlias_file0');
|
||||
var x = require('./chainedImportAlias_file0');
|
||||
var y = x;
|
||||
y.m.foo();
|
||||
@@ -1,15 +1,15 @@
|
||||
=== tests/cases/compiler/chainedImportAlias_file1.ts ===
|
||||
import x = require('chainedImportAlias_file0');
|
||||
import x = require('./chainedImportAlias_file0');
|
||||
>x : Symbol(x, Decl(chainedImportAlias_file1.ts, 0, 0))
|
||||
|
||||
import y = x;
|
||||
>y : Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 47))
|
||||
>y : Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 49))
|
||||
>x : Symbol(x, Decl(chainedImportAlias_file0.ts, 0, 0))
|
||||
|
||||
y.m.foo();
|
||||
>y.m.foo : Symbol(x.m.foo, Decl(chainedImportAlias_file0.ts, 0, 17))
|
||||
>y.m : Symbol(x.m, Decl(chainedImportAlias_file0.ts, 0, 0))
|
||||
>y : Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 47))
|
||||
>y : Symbol(y, Decl(chainedImportAlias_file1.ts, 0, 49))
|
||||
>m : Symbol(x.m, Decl(chainedImportAlias_file0.ts, 0, 0))
|
||||
>foo : Symbol(x.m.foo, Decl(chainedImportAlias_file0.ts, 0, 17))
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
=== tests/cases/compiler/chainedImportAlias_file1.ts ===
|
||||
import x = require('chainedImportAlias_file0');
|
||||
import x = require('./chainedImportAlias_file0');
|
||||
>x : typeof x
|
||||
|
||||
import y = x;
|
||||
|
||||
@@ -54,7 +54,7 @@ var myvar2 = new m4.m2.c();
|
||||
|
||||
//// [commentsExternalModules_1.ts]
|
||||
/**This is on import declaration*/
|
||||
import extMod = require("commentsExternalModules2_0"); // trailing comment 1
|
||||
import extMod = require("./commentsExternalModules2_0"); // trailing comment 1
|
||||
extMod.m1.fooExport();
|
||||
export var newVar = new extMod.m1.m2.c();
|
||||
extMod.m4.fooExport();
|
||||
@@ -124,7 +124,7 @@ m4.fooExport();
|
||||
var myvar2 = new m4.m2.c();
|
||||
//// [commentsExternalModules_1.js]
|
||||
/**This is on import declaration*/
|
||||
var extMod = require("commentsExternalModules2_0"); // trailing comment 1
|
||||
var extMod = require("./commentsExternalModules2_0"); // trailing comment 1
|
||||
extMod.m1.fooExport();
|
||||
exports.newVar = new extMod.m1.m2.c();
|
||||
extMod.m4.fooExport();
|
||||
@@ -165,6 +165,6 @@ export declare module m4 {
|
||||
}
|
||||
//// [commentsExternalModules_1.d.ts]
|
||||
/**This is on import declaration*/
|
||||
import extMod = require("commentsExternalModules2_0");
|
||||
import extMod = require("./commentsExternalModules2_0");
|
||||
export declare var newVar: extMod.m1.m2.c;
|
||||
export declare var newVar2: extMod.m4.m2.c;
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/commentsExternalModules_1.ts ===
|
||||
/**This is on import declaration*/
|
||||
import extMod = require("commentsExternalModules2_0"); // trailing comment 1
|
||||
import extMod = require("./commentsExternalModules2_0"); // trailing comment 1
|
||||
>extMod : Symbol(extMod, Decl(commentsExternalModules_1.ts, 0, 0))
|
||||
|
||||
extMod.m1.fooExport();
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/commentsExternalModules_1.ts ===
|
||||
/**This is on import declaration*/
|
||||
import extMod = require("commentsExternalModules2_0"); // trailing comment 1
|
||||
import extMod = require("./commentsExternalModules2_0"); // trailing comment 1
|
||||
>extMod : typeof extMod
|
||||
|
||||
extMod.m1.fooExport();
|
||||
|
||||
@@ -6,7 +6,7 @@ export class Foo { }
|
||||
|
||||
//// [declFileAliasUseBeforeDeclaration_test.ts]
|
||||
export function bar(a: foo.Foo) { }
|
||||
import foo = require("declFileAliasUseBeforeDeclaration_foo");
|
||||
import foo = require("./declFileAliasUseBeforeDeclaration_foo");
|
||||
|
||||
//// [declFileAliasUseBeforeDeclaration_foo.js]
|
||||
var Foo = (function () {
|
||||
@@ -25,4 +25,4 @@ export declare class Foo {
|
||||
}
|
||||
//// [declFileAliasUseBeforeDeclaration_test.d.ts]
|
||||
export declare function bar(a: foo.Foo): void;
|
||||
import foo = require("declFileAliasUseBeforeDeclaration_foo");
|
||||
import foo = require("./declFileAliasUseBeforeDeclaration_foo");
|
||||
@@ -5,7 +5,7 @@ export function bar(a: foo.Foo) { }
|
||||
>foo : Symbol(foo, Decl(declFileAliasUseBeforeDeclaration_test.ts, 0, 35))
|
||||
>Foo : Symbol(foo.Foo, Decl(declFileAliasUseBeforeDeclaration_foo.ts, 0, 0))
|
||||
|
||||
import foo = require("declFileAliasUseBeforeDeclaration_foo");
|
||||
import foo = require("./declFileAliasUseBeforeDeclaration_foo");
|
||||
>foo : Symbol(foo, Decl(declFileAliasUseBeforeDeclaration_test.ts, 0, 35))
|
||||
|
||||
=== tests/cases/compiler/declFileAliasUseBeforeDeclaration_foo.ts ===
|
||||
|
||||
@@ -5,7 +5,7 @@ export function bar(a: foo.Foo) { }
|
||||
>foo : any
|
||||
>Foo : foo.Foo
|
||||
|
||||
import foo = require("declFileAliasUseBeforeDeclaration_foo");
|
||||
import foo = require("./declFileAliasUseBeforeDeclaration_foo");
|
||||
>foo : typeof foo
|
||||
|
||||
=== tests/cases/compiler/declFileAliasUseBeforeDeclaration_foo.ts ===
|
||||
|
||||
@@ -5,7 +5,7 @@ export var x: number;
|
||||
|
||||
//// [declFileForExportedImport_1.ts]
|
||||
///<reference path='declFileForExportedImport_0.ts'/>
|
||||
export import a = require('declFileForExportedImport_0');
|
||||
export import a = require('./declFileForExportedImport_0');
|
||||
var y = a.x;
|
||||
|
||||
export import b = a;
|
||||
@@ -14,7 +14,7 @@ var z = b.x;
|
||||
//// [declFileForExportedImport_0.js]
|
||||
//// [declFileForExportedImport_1.js]
|
||||
///<reference path='declFileForExportedImport_0.ts'/>
|
||||
exports.a = require('declFileForExportedImport_0');
|
||||
exports.a = require('./declFileForExportedImport_0');
|
||||
var y = exports.a.x;
|
||||
exports.b = exports.a;
|
||||
var z = exports.b.x;
|
||||
@@ -24,5 +24,5 @@ var z = exports.b.x;
|
||||
export declare var x: number;
|
||||
//// [declFileForExportedImport_1.d.ts]
|
||||
/// <reference path="declFileForExportedImport_0.d.ts" />
|
||||
export import a = require('declFileForExportedImport_0');
|
||||
export import a = require('./declFileForExportedImport_0');
|
||||
export import b = a;
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/declFileForExportedImport_1.ts ===
|
||||
///<reference path='declFileForExportedImport_0.ts'/>
|
||||
export import a = require('declFileForExportedImport_0');
|
||||
export import a = require('./declFileForExportedImport_0');
|
||||
>a : Symbol(a, Decl(declFileForExportedImport_1.ts, 0, 0))
|
||||
|
||||
var y = a.x;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/declFileForExportedImport_1.ts ===
|
||||
///<reference path='declFileForExportedImport_0.ts'/>
|
||||
export import a = require('declFileForExportedImport_0');
|
||||
export import a = require('./declFileForExportedImport_0');
|
||||
>a : typeof a
|
||||
|
||||
var y = a.x;
|
||||
|
||||
@@ -21,7 +21,7 @@ export = m2;
|
||||
|
||||
//// [declFileImportModuleWithExportAssignment_1.ts]
|
||||
/**This is on import declaration*/
|
||||
import a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
import a1 = require("./declFileImportModuleWithExportAssignment_0");
|
||||
export var a = a1;
|
||||
a.test1(null, null, null);
|
||||
|
||||
@@ -31,7 +31,7 @@ var m2;
|
||||
module.exports = m2;
|
||||
//// [declFileImportModuleWithExportAssignment_1.js]
|
||||
/**This is on import declaration*/
|
||||
var a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
var a1 = require("./declFileImportModuleWithExportAssignment_0");
|
||||
exports.a = a1;
|
||||
exports.a.test1(null, null, null);
|
||||
|
||||
@@ -54,7 +54,7 @@ declare var m2: {
|
||||
export = m2;
|
||||
//// [declFileImportModuleWithExportAssignment_1.d.ts]
|
||||
/**This is on import declaration*/
|
||||
import a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
import a1 = require("./declFileImportModuleWithExportAssignment_0");
|
||||
export declare var a: {
|
||||
(): a1.connectExport;
|
||||
test1: a1.connectModule;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/declFileImportModuleWithExportAssignment_1.ts ===
|
||||
/**This is on import declaration*/
|
||||
import a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
import a1 = require("./declFileImportModuleWithExportAssignment_0");
|
||||
>a1 : Symbol(a1, Decl(declFileImportModuleWithExportAssignment_1.ts, 0, 0))
|
||||
|
||||
export var a = a1;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/declFileImportModuleWithExportAssignment_1.ts ===
|
||||
/**This is on import declaration*/
|
||||
import a1 = require("declFileImportModuleWithExportAssignment_0");
|
||||
import a1 = require("./declFileImportModuleWithExportAssignment_0");
|
||||
>a1 : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; }
|
||||
|
||||
export var a = a1;
|
||||
|
||||
@@ -7,7 +7,7 @@ export function bar() { }
|
||||
export interface Buzz { }
|
||||
|
||||
//// [index.ts]
|
||||
import {foo} from "utils";
|
||||
import {foo} from "./utils";
|
||||
export = foo;
|
||||
|
||||
//// [utils.js]
|
||||
@@ -16,7 +16,7 @@ exports.foo = foo;
|
||||
function bar() { }
|
||||
exports.bar = bar;
|
||||
//// [index.js]
|
||||
var utils_1 = require("utils");
|
||||
var utils_1 = require("./utils");
|
||||
module.exports = utils_1.foo;
|
||||
|
||||
|
||||
@@ -26,5 +26,5 @@ export declare function bar(): void;
|
||||
export interface Buzz {
|
||||
}
|
||||
//// [index.d.ts]
|
||||
import { foo } from "utils";
|
||||
import { foo } from "./utils";
|
||||
export = foo;
|
||||
@@ -10,7 +10,7 @@ export interface Buzz { }
|
||||
>Buzz : Symbol(Buzz, Decl(utils.ts, 2, 25))
|
||||
|
||||
=== tests/cases/compiler/index.ts ===
|
||||
import {foo} from "utils";
|
||||
import {foo} from "./utils";
|
||||
>foo : Symbol(foo, Decl(index.ts, 0, 8))
|
||||
|
||||
export = foo;
|
||||
|
||||
@@ -10,7 +10,7 @@ export interface Buzz { }
|
||||
>Buzz : Buzz
|
||||
|
||||
=== tests/cases/compiler/index.ts ===
|
||||
import {foo} from "utils";
|
||||
import {foo} from "./utils";
|
||||
>foo : () => void
|
||||
|
||||
export = foo;
|
||||
|
||||
@@ -7,7 +7,7 @@ export function bar() { }
|
||||
export interface Buzz { }
|
||||
|
||||
//// [index.ts]
|
||||
import {foo, bar, Buzz} from "utils";
|
||||
import {foo, bar, Buzz} from "./utils";
|
||||
|
||||
foo();
|
||||
let obj: Buzz;
|
||||
@@ -19,7 +19,7 @@ exports.foo = foo;
|
||||
function bar() { }
|
||||
exports.bar = bar;
|
||||
//// [index.js]
|
||||
var utils_1 = require("utils");
|
||||
var utils_1 = require("./utils");
|
||||
exports.bar = utils_1.bar;
|
||||
utils_1.foo();
|
||||
var obj;
|
||||
@@ -31,5 +31,5 @@ export declare function bar(): void;
|
||||
export interface Buzz {
|
||||
}
|
||||
//// [index.d.ts]
|
||||
import { bar } from "utils";
|
||||
import { bar } from "./utils";
|
||||
export { bar };
|
||||
@@ -10,7 +10,7 @@ export interface Buzz { }
|
||||
>Buzz : Symbol(Buzz, Decl(utils.ts, 2, 25))
|
||||
|
||||
=== tests/cases/compiler/index.ts ===
|
||||
import {foo, bar, Buzz} from "utils";
|
||||
import {foo, bar, Buzz} from "./utils";
|
||||
>foo : Symbol(foo, Decl(index.ts, 0, 8))
|
||||
>bar : Symbol(bar, Decl(index.ts, 0, 12))
|
||||
>Buzz : Symbol(Buzz, Decl(index.ts, 0, 17))
|
||||
|
||||
@@ -10,7 +10,7 @@ export interface Buzz { }
|
||||
>Buzz : Buzz
|
||||
|
||||
=== tests/cases/compiler/index.ts ===
|
||||
import {foo, bar, Buzz} from "utils";
|
||||
import {foo, bar, Buzz} from "./utils";
|
||||
>foo : () => void
|
||||
>bar : () => void
|
||||
>Buzz : any
|
||||
|
||||
@@ -5,7 +5,7 @@ module f { export class c { } }
|
||||
export = f;
|
||||
|
||||
//// [declarationEmit_nameConflicts_0.ts]
|
||||
import im = require('declarationEmit_nameConflicts_1');
|
||||
import im = require('./declarationEmit_nameConflicts_1');
|
||||
export module M {
|
||||
export function f() { }
|
||||
export class C { }
|
||||
@@ -61,7 +61,7 @@ var f;
|
||||
})(f || (f = {}));
|
||||
module.exports = f;
|
||||
//// [declarationEmit_nameConflicts_0.js]
|
||||
var im = require('declarationEmit_nameConflicts_1');
|
||||
var im = require('./declarationEmit_nameConflicts_1');
|
||||
var M;
|
||||
(function (M) {
|
||||
function f() { }
|
||||
@@ -138,7 +138,7 @@ declare module f {
|
||||
}
|
||||
export = f;
|
||||
//// [declarationEmit_nameConflicts_0.d.ts]
|
||||
import im = require('declarationEmit_nameConflicts_1');
|
||||
import im = require('./declarationEmit_nameConflicts_1');
|
||||
export declare module M {
|
||||
function f(): void;
|
||||
class C {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
=== tests/cases/compiler/declarationEmit_nameConflicts_0.ts ===
|
||||
import im = require('declarationEmit_nameConflicts_1');
|
||||
import im = require('./declarationEmit_nameConflicts_1');
|
||||
>im : Symbol(im, Decl(declarationEmit_nameConflicts_0.ts, 0, 0))
|
||||
|
||||
export module M {
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
|
||||
export function f() { }
|
||||
>f : Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 1, 17))
|
||||
@@ -23,12 +23,12 @@ export module M {
|
||||
|
||||
export import a = M.f;
|
||||
>a : Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>f : Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 1, 17))
|
||||
|
||||
export import b = M.C;
|
||||
>b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>C : Symbol(C, Decl(declarationEmit_nameConflicts_0.ts, 2, 27))
|
||||
|
||||
export import c = N;
|
||||
@@ -41,7 +41,7 @@ export module M {
|
||||
}
|
||||
|
||||
export module M.P {
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>P : Symbol(P, Decl(declarationEmit_nameConflicts_0.ts, 15, 16))
|
||||
|
||||
export function f() { }
|
||||
@@ -61,45 +61,45 @@ export module M.P {
|
||||
}
|
||||
export import im = M.P.f;
|
||||
>im : Symbol(im, Decl(declarationEmit_nameConflicts_0.ts, 21, 5))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>P : Symbol(P, Decl(declarationEmit_nameConflicts_0.ts, 15, 16))
|
||||
>f : Symbol(f, Decl(declarationEmit_nameConflicts_0.ts, 15, 19))
|
||||
|
||||
export var a = M.a; // emitted incorrectly as typeof f
|
||||
>a : Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 23, 14))
|
||||
>M.a : Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>a : Symbol(a, Decl(declarationEmit_nameConflicts_0.ts, 7, 5))
|
||||
|
||||
export var b = M.b; // ok
|
||||
>b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 24, 14))
|
||||
>M.b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
||||
|
||||
export var c = M.c; // ok
|
||||
>c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 25, 14))
|
||||
>M.c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
|
||||
export var g = M.c.g; // ok
|
||||
>g : Symbol(g, Decl(declarationEmit_nameConflicts_0.ts, 26, 14))
|
||||
>M.c.g : Symbol(c.g, Decl(declarationEmit_nameConflicts_0.ts, 4, 21))
|
||||
>M.c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>g : Symbol(c.g, Decl(declarationEmit_nameConflicts_0.ts, 4, 21))
|
||||
|
||||
export var d = M.d; // emitted incorrectly as typeof im
|
||||
>d : Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 27, 14))
|
||||
>M.d : Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 11, 24))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>d : Symbol(d, Decl(declarationEmit_nameConflicts_0.ts, 11, 24))
|
||||
}
|
||||
|
||||
export module M.Q {
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>Q : Symbol(Q, Decl(declarationEmit_nameConflicts_0.ts, 30, 16))
|
||||
|
||||
export function f() { }
|
||||
@@ -120,14 +120,14 @@ export module M.Q {
|
||||
export interface b extends M.b { } // ok
|
||||
>b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 36, 5))
|
||||
>M.b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>b : Symbol(b, Decl(declarationEmit_nameConflicts_0.ts, 9, 26))
|
||||
|
||||
export interface I extends M.c.I { } // ok
|
||||
>I : Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 37, 38))
|
||||
>M.c.I : Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
||||
>M.c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>I : Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
||||
|
||||
@@ -138,7 +138,7 @@ export module M.Q {
|
||||
>I : Symbol(I, Decl(declarationEmit_nameConflicts_0.ts, 39, 21))
|
||||
>M.c.I : Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
||||
>M.c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 55), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>M : Symbol(M, Decl(declarationEmit_nameConflicts_0.ts, 0, 57), Decl(declarationEmit_nameConflicts_0.ts, 13, 1), Decl(declarationEmit_nameConflicts_0.ts, 28, 1))
|
||||
>c : Symbol(c, Decl(declarationEmit_nameConflicts_0.ts, 10, 26))
|
||||
>I : Symbol(M.c.I, Decl(declarationEmit_nameConflicts_0.ts, 5, 32))
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
=== tests/cases/compiler/declarationEmit_nameConflicts_0.ts ===
|
||||
import im = require('declarationEmit_nameConflicts_1');
|
||||
import im = require('./declarationEmit_nameConflicts_1');
|
||||
>im : typeof im
|
||||
|
||||
export module M {
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
tests/cases/conformance/es6/modules/m1.ts(2,25): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m1.ts(11,18): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m2.ts(5,8): error TS2304: Cannot find name 'Entity'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(6,8): error TS2503: Cannot find namespace 'Entity'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(8,8): error TS2339: Property 'x' does not exist on type '() => number'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(9,8): error TS2339: Property 'y' does not exist on type '() => number'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(1,20): error TS2307: Cannot find module 'm1'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m1.ts (2 errors) ====
|
||||
@@ -29,21 +26,15 @@ tests/cases/conformance/es6/modules/m2.ts(9,8): error TS2339: Property 'y' does
|
||||
}
|
||||
}
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (4 errors) ====
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (1 errors) ====
|
||||
import Entity from "m1"
|
||||
~~~~
|
||||
!!! error TS2307: Cannot find module 'm1'.
|
||||
|
||||
Entity();
|
||||
|
||||
var x: Entity;
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'Entity'.
|
||||
var y: Entity.I;
|
||||
~~~~~~
|
||||
!!! error TS2503: Cannot find namespace 'Entity'.
|
||||
|
||||
Entity.x;
|
||||
~
|
||||
!!! error TS2339: Property 'x' does not exist on type '() => number'.
|
||||
Entity.y;
|
||||
~
|
||||
!!! error TS2339: Property 'y' does not exist on type '() => number'.
|
||||
Entity.y;
|
||||
@@ -1,9 +1,6 @@
|
||||
tests/cases/conformance/es6/modules/m1.ts(2,22): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m1.ts(5,18): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m2.ts(3,1): error TS2348: Value of type 'typeof Decl' is not callable. Did you mean to include 'new'?
|
||||
tests/cases/conformance/es6/modules/m2.ts(6,8): error TS2503: Cannot find namespace 'Entity'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(8,13): error TS2339: Property 'p1' does not exist on type 'Decl'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(8,20): error TS2339: Property 'p2' does not exist on type 'Decl'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(1,20): error TS2307: Cannot find module 'm1'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m1.ts (2 errors) ====
|
||||
@@ -25,20 +22,14 @@ tests/cases/conformance/es6/modules/m2.ts(8,20): error TS2339: Property 'p2' doe
|
||||
}
|
||||
}
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (4 errors) ====
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (1 errors) ====
|
||||
import Entity from "m1"
|
||||
~~~~
|
||||
!!! error TS2307: Cannot find module 'm1'.
|
||||
|
||||
Entity();
|
||||
~~~~~~~~
|
||||
!!! error TS2348: Value of type 'typeof Decl' is not callable. Did you mean to include 'new'?
|
||||
|
||||
var x: Entity;
|
||||
var y: Entity.I;
|
||||
~~~~~~
|
||||
!!! error TS2503: Cannot find namespace 'Entity'.
|
||||
var z = new Entity();
|
||||
var sum = z.p1 + z.p2
|
||||
~~
|
||||
!!! error TS2339: Property 'p1' does not exist on type 'Decl'.
|
||||
~~
|
||||
!!! error TS2339: Property 'p2' does not exist on type 'Decl'.
|
||||
var sum = z.p1 + z.p2
|
||||
@@ -1,10 +1,7 @@
|
||||
tests/cases/conformance/es6/modules/m1.ts(2,22): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m1.ts(5,11): error TS2518: Only an ambient class can be merged with an interface.
|
||||
tests/cases/conformance/es6/modules/m1.ts(5,11): error TS2652: Merged declaration 'Decl' cannot include a default export declaration. Consider adding a separate 'export default Decl' declaration instead.
|
||||
tests/cases/conformance/es6/modules/m2.ts(3,1): error TS2348: Value of type 'typeof Decl' is not callable. Did you mean to include 'new'?
|
||||
tests/cases/conformance/es6/modules/m2.ts(6,8): error TS2503: Cannot find namespace 'Entity'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(8,13): error TS2339: Property 'p1' does not exist on type 'Decl'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(8,20): error TS2339: Property 'p2' does not exist on type 'Decl'.
|
||||
tests/cases/conformance/es6/modules/m2.ts(1,20): error TS2307: Cannot find module 'm1'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m1.ts (3 errors) ====
|
||||
@@ -28,20 +25,14 @@ tests/cases/conformance/es6/modules/m2.ts(8,20): error TS2339: Property 'p2' doe
|
||||
}
|
||||
}
|
||||
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (4 errors) ====
|
||||
==== tests/cases/conformance/es6/modules/m2.ts (1 errors) ====
|
||||
import Entity from "m1"
|
||||
~~~~
|
||||
!!! error TS2307: Cannot find module 'm1'.
|
||||
|
||||
Entity();
|
||||
~~~~~~~~
|
||||
!!! error TS2348: Value of type 'typeof Decl' is not callable. Did you mean to include 'new'?
|
||||
|
||||
var x: Entity;
|
||||
var y: Entity.I;
|
||||
~~~~~~
|
||||
!!! error TS2503: Cannot find namespace 'Entity'.
|
||||
var z = new Entity();
|
||||
var sum = z.p1 + z.p2
|
||||
~~
|
||||
!!! error TS2339: Property 'p1' does not exist on type 'Decl'.
|
||||
~~
|
||||
!!! error TS2339: Property 'p2' does not exist on type 'Decl'.
|
||||
var sum = z.p1 + z.p2
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
//// [elidingImportNames_test.ts]
|
||||
|
||||
import a = require('elidingImportNames_main'); // alias used in typeof
|
||||
import a = require('./elidingImportNames_main'); // alias used in typeof
|
||||
var b = a;
|
||||
var x: typeof a;
|
||||
import a2 = require('elidingImportNames_main1'); // alias not used in typeof
|
||||
import a2 = require('./elidingImportNames_main1'); // alias not used in typeof
|
||||
var b2 = a2;
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ exports.main = 10;
|
||||
//// [elidingImportNames_main1.js]
|
||||
exports.main = 10;
|
||||
//// [elidingImportNames_test.js]
|
||||
var a = require('elidingImportNames_main'); // alias used in typeof
|
||||
var a = require('./elidingImportNames_main'); // alias used in typeof
|
||||
var b = a;
|
||||
var x;
|
||||
var a2 = require('elidingImportNames_main1'); // alias not used in typeof
|
||||
var a2 = require('./elidingImportNames_main1'); // alias not used in typeof
|
||||
var b2 = a2;
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/elidingImportNames_test.ts ===
|
||||
|
||||
import a = require('elidingImportNames_main'); // alias used in typeof
|
||||
import a = require('./elidingImportNames_main'); // alias used in typeof
|
||||
>a : Symbol(a, Decl(elidingImportNames_test.ts, 0, 0))
|
||||
|
||||
var b = a;
|
||||
@@ -11,7 +11,7 @@ var x: typeof a;
|
||||
>x : Symbol(x, Decl(elidingImportNames_test.ts, 3, 3))
|
||||
>a : Symbol(a, Decl(elidingImportNames_test.ts, 0, 0))
|
||||
|
||||
import a2 = require('elidingImportNames_main1'); // alias not used in typeof
|
||||
import a2 = require('./elidingImportNames_main1'); // alias not used in typeof
|
||||
>a2 : Symbol(a2, Decl(elidingImportNames_test.ts, 3, 16))
|
||||
|
||||
var b2 = a2;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/elidingImportNames_test.ts ===
|
||||
|
||||
import a = require('elidingImportNames_main'); // alias used in typeof
|
||||
import a = require('./elidingImportNames_main'); // alias used in typeof
|
||||
>a : typeof a
|
||||
|
||||
var b = a;
|
||||
@@ -11,7 +11,7 @@ var x: typeof a;
|
||||
>x : typeof a
|
||||
>a : typeof a
|
||||
|
||||
import a2 = require('elidingImportNames_main1'); // alias not used in typeof
|
||||
import a2 = require('./elidingImportNames_main1'); // alias not used in typeof
|
||||
>a2 : typeof a2
|
||||
|
||||
var b2 = a2;
|
||||
|
||||
@@ -5,7 +5,7 @@ export enum Mode { Open }
|
||||
|
||||
//// [enumFromExternalModule_1.ts]
|
||||
///<reference path='enumFromExternalModule_0.ts'/>
|
||||
import f = require('enumFromExternalModule_0');
|
||||
import f = require('./enumFromExternalModule_0');
|
||||
|
||||
var x = f.Mode.Open;
|
||||
|
||||
@@ -17,5 +17,5 @@ var x = f.Mode.Open;
|
||||
var Mode = exports.Mode;
|
||||
//// [enumFromExternalModule_1.js]
|
||||
///<reference path='enumFromExternalModule_0.ts'/>
|
||||
var f = require('enumFromExternalModule_0');
|
||||
var f = require('./enumFromExternalModule_0');
|
||||
var x = f.Mode.Open;
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/enumFromExternalModule_1.ts ===
|
||||
///<reference path='enumFromExternalModule_0.ts'/>
|
||||
import f = require('enumFromExternalModule_0');
|
||||
import f = require('./enumFromExternalModule_0');
|
||||
>f : Symbol(f, Decl(enumFromExternalModule_1.ts, 0, 0))
|
||||
|
||||
var x = f.Mode.Open;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
=== tests/cases/compiler/enumFromExternalModule_1.ts ===
|
||||
///<reference path='enumFromExternalModule_0.ts'/>
|
||||
import f = require('enumFromExternalModule_0');
|
||||
import f = require('./enumFromExternalModule_0');
|
||||
>f : typeof f
|
||||
|
||||
var x = f.Mode.Open;
|
||||
|
||||
@@ -3,7 +3,7 @@ tests/cases/compiler/errorsOnImportedSymbol_1.ts(3,9): error TS2304: Cannot find
|
||||
|
||||
|
||||
==== tests/cases/compiler/errorsOnImportedSymbol_1.ts (2 errors) ====
|
||||
import Sammy = require("errorsOnImportedSymbol_0");
|
||||
import Sammy = require("./errorsOnImportedSymbol_0");
|
||||
var x = new Sammy.Sammy();
|
||||
~~~~~
|
||||
!!! error TS2304: Cannot find name 'Sammy'.
|
||||
|
||||
@@ -9,7 +9,7 @@ interface Sammy {
|
||||
export = Sammy;
|
||||
|
||||
//// [errorsOnImportedSymbol_1.ts]
|
||||
import Sammy = require("errorsOnImportedSymbol_0");
|
||||
import Sammy = require("./errorsOnImportedSymbol_0");
|
||||
var x = new Sammy.Sammy();
|
||||
var y = Sammy.Sammy();
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
//// [client.ts]
|
||||
export * from "server";
|
||||
export * from "./server";
|
||||
|
||||
//// [server.js]
|
||||
var c = (function () {
|
||||
@@ -32,7 +32,7 @@ exports.x = 10;
|
||||
function __export(m) {
|
||||
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
||||
}
|
||||
__export(require("server"));
|
||||
__export(require("./server"));
|
||||
|
||||
|
||||
//// [server.d.ts]
|
||||
@@ -47,4 +47,4 @@ export declare var x: number;
|
||||
export declare module uninstantiated {
|
||||
}
|
||||
//// [client.d.ts]
|
||||
export * from "server";
|
||||
export * from "./server";
|
||||
@@ -20,5 +20,5 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
export * from "server";
|
||||
export * from "./server";
|
||||
No type information for this code.
|
||||
@@ -22,5 +22,5 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
export * from "server";
|
||||
export * from "./server";
|
||||
No type information for this code.
|
||||
@@ -14,11 +14,11 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
//// [client.ts]
|
||||
export { c } from "server";
|
||||
export { c as c2 } from "server";
|
||||
export { i, m as instantiatedModule } from "server";
|
||||
export { uninstantiated } from "server";
|
||||
export { x } from "server";
|
||||
export { c } from "./server";
|
||||
export { c as c2 } from "./server";
|
||||
export { i, m as instantiatedModule } from "./server";
|
||||
export { uninstantiated } from "./server";
|
||||
export { x } from "./server";
|
||||
|
||||
//// [server.js]
|
||||
var c = (function () {
|
||||
@@ -33,13 +33,13 @@ var m;
|
||||
})(m = exports.m || (exports.m = {}));
|
||||
exports.x = 10;
|
||||
//// [client.js]
|
||||
var server_1 = require("server");
|
||||
var server_1 = require("./server");
|
||||
exports.c = server_1.c;
|
||||
var server_2 = require("server");
|
||||
var server_2 = require("./server");
|
||||
exports.c2 = server_2.c;
|
||||
var server_3 = require("server");
|
||||
var server_3 = require("./server");
|
||||
exports.instantiatedModule = server_3.m;
|
||||
var server_4 = require("server");
|
||||
var server_4 = require("./server");
|
||||
exports.x = server_4.x;
|
||||
|
||||
|
||||
@@ -55,8 +55,8 @@ export declare var x: number;
|
||||
export declare module uninstantiated {
|
||||
}
|
||||
//// [client.d.ts]
|
||||
export { c } from "server";
|
||||
export { c as c2 } from "server";
|
||||
export { i, m as instantiatedModule } from "server";
|
||||
export { uninstantiated } from "server";
|
||||
export { x } from "server";
|
||||
export { c } from "./server";
|
||||
export { c as c2 } from "./server";
|
||||
export { i, m as instantiatedModule } from "./server";
|
||||
export { uninstantiated } from "./server";
|
||||
export { x } from "./server";
|
||||
@@ -20,21 +20,21 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
export { c } from "server";
|
||||
export { c } from "./server";
|
||||
>c : Symbol(c, Decl(client.ts, 0, 8))
|
||||
|
||||
export { c as c2 } from "server";
|
||||
export { c as c2 } from "./server";
|
||||
>c : Symbol(c2, Decl(client.ts, 1, 8))
|
||||
>c2 : Symbol(c2, Decl(client.ts, 1, 8))
|
||||
|
||||
export { i, m as instantiatedModule } from "server";
|
||||
export { i, m as instantiatedModule } from "./server";
|
||||
>i : Symbol(i, Decl(client.ts, 2, 8))
|
||||
>m : Symbol(instantiatedModule, Decl(client.ts, 2, 11))
|
||||
>instantiatedModule : Symbol(instantiatedModule, Decl(client.ts, 2, 11))
|
||||
|
||||
export { uninstantiated } from "server";
|
||||
export { uninstantiated } from "./server";
|
||||
>uninstantiated : Symbol(uninstantiated, Decl(client.ts, 3, 8))
|
||||
|
||||
export { x } from "server";
|
||||
export { x } from "./server";
|
||||
>x : Symbol(x, Decl(client.ts, 4, 8))
|
||||
|
||||
@@ -22,21 +22,21 @@ export module uninstantiated {
|
||||
}
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
export { c } from "server";
|
||||
export { c } from "./server";
|
||||
>c : typeof c
|
||||
|
||||
export { c as c2 } from "server";
|
||||
export { c as c2 } from "./server";
|
||||
>c : typeof c
|
||||
>c2 : typeof c
|
||||
|
||||
export { i, m as instantiatedModule } from "server";
|
||||
export { i, m as instantiatedModule } from "./server";
|
||||
>i : any
|
||||
>m : typeof m
|
||||
>instantiatedModule : typeof m
|
||||
|
||||
export { uninstantiated } from "server";
|
||||
export { uninstantiated } from "./server";
|
||||
>uninstantiated : any
|
||||
|
||||
export { x } from "server";
|
||||
export { x } from "./server";
|
||||
>x : number
|
||||
|
||||
@@ -6,9 +6,9 @@ class c { }
|
||||
export default c;
|
||||
|
||||
//// [client.ts]
|
||||
import defaultBinding from "server";
|
||||
import defaultBinding from "./server";
|
||||
export var x = new defaultBinding();
|
||||
import defaultBinding2 from "server"; // elide this import since defaultBinding2 is not used
|
||||
import defaultBinding2 from "./server"; // elide this import since defaultBinding2 is not used
|
||||
|
||||
|
||||
//// [server.js]
|
||||
@@ -20,7 +20,7 @@ var c = (function () {
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = c;
|
||||
//// [client.js]
|
||||
var server_1 = require("server");
|
||||
var server_1 = require("./server");
|
||||
exports.x = new server_1.default();
|
||||
|
||||
|
||||
@@ -29,5 +29,5 @@ declare class c {
|
||||
}
|
||||
export default c;
|
||||
//// [client.d.ts]
|
||||
import defaultBinding from "server";
|
||||
import defaultBinding from "./server";
|
||||
export declare var x: defaultBinding;
|
||||
@@ -7,13 +7,13 @@ export default c;
|
||||
>c : Symbol(c, Decl(server.ts, 0, 0))
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
import defaultBinding from "server";
|
||||
import defaultBinding from "./server";
|
||||
>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 6))
|
||||
|
||||
export var x = new defaultBinding();
|
||||
>x : Symbol(x, Decl(client.ts, 1, 10))
|
||||
>defaultBinding : Symbol(defaultBinding, Decl(client.ts, 0, 6))
|
||||
|
||||
import defaultBinding2 from "server"; // elide this import since defaultBinding2 is not used
|
||||
import defaultBinding2 from "./server"; // elide this import since defaultBinding2 is not used
|
||||
>defaultBinding2 : Symbol(defaultBinding2, Decl(client.ts, 2, 6))
|
||||
|
||||
@@ -7,7 +7,7 @@ export default c;
|
||||
>c : c
|
||||
|
||||
=== tests/cases/compiler/client.ts ===
|
||||
import defaultBinding from "server";
|
||||
import defaultBinding from "./server";
|
||||
>defaultBinding : typeof defaultBinding
|
||||
|
||||
export var x = new defaultBinding();
|
||||
@@ -15,6 +15,6 @@ export var x = new defaultBinding();
|
||||
>new defaultBinding() : defaultBinding
|
||||
>defaultBinding : typeof defaultBinding
|
||||
|
||||
import defaultBinding2 from "server"; // elide this import since defaultBinding2 is not used
|
||||
import defaultBinding2 from "./server"; // elide this import since defaultBinding2 is not used
|
||||
>defaultBinding2 : typeof defaultBinding
|
||||
|
||||
@@ -10,16 +10,16 @@ error TS1204: Cannot compile modules into 'commonjs', 'amd', 'system' or 'umd' w
|
||||
export default {};
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport_1.ts (0 errors) ====
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = a;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = b;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = x;
|
||||
var x1: number = y;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = z;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = m;
|
||||
|
||||
@@ -8,17 +8,17 @@ export var m = a;
|
||||
export default {};
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport_1.ts]
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = a;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = b;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = x;
|
||||
var x1: number = y;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = z;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1: number = m;
|
||||
|
||||
|
||||
@@ -28,16 +28,16 @@ export var x = a;
|
||||
export var m = a;
|
||||
export default {};
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport_1.js]
|
||||
import { a } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import { a } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1 = a;
|
||||
import { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1 = b;
|
||||
import { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1 = x;
|
||||
var x1 = y;
|
||||
import { x as z } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import { x as z } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1 = z;
|
||||
import { m } from "es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
import { m } from "./es6ImportDefaultBindingFollowedWithNamedImport_0";
|
||||
var x1 = m;
|
||||
|
||||
|
||||
|
||||
+6
-6
@@ -12,27 +12,27 @@ tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts(1
|
||||
export default a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts (6 errors) ====
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding1;
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
var x: number = defaultBinding2;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
var x: number = defaultBinding3;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'a'.
|
||||
var x: number = defaultBinding4;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'x'.
|
||||
var x: number = defaultBinding5;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0"' has no exported member 'm'.
|
||||
var x: number = defaultBinding6;
|
||||
|
||||
@@ -6,17 +6,17 @@ var a = 10;
|
||||
export default a;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.ts]
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding1;
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding2;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding3;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding4;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding5;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0";
|
||||
var x: number = defaultBinding6;
|
||||
|
||||
|
||||
@@ -25,17 +25,17 @@ var a = 10;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = a;
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImport1InEs5_1.js]
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_1.default;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_2.default;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_3.default;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_4.default;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_5.default;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6 = require("es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6 = require("./es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0");
|
||||
var x = es6ImportDefaultBindingFollowedWithNamedImport1InEs5_0_6.default;
|
||||
|
||||
|
||||
|
||||
+6
-6
@@ -18,23 +18,23 @@ tests/cases/compiler/client.ts(11,34): error TS2305: Module '"tests/cases/compil
|
||||
export default a;
|
||||
|
||||
==== tests/cases/compiler/client.ts (12 errors) ====
|
||||
export import defaultBinding1, { } from "server";
|
||||
export import defaultBinding1, { } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
export var x1: number = defaultBinding1;
|
||||
export import defaultBinding2, { a } from "server";
|
||||
export import defaultBinding2, { a } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x1: number = defaultBinding2;
|
||||
export import defaultBinding3, { a as b } from "server";
|
||||
export import defaultBinding3, { a as b } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x1: number = defaultBinding3;
|
||||
export import defaultBinding4, { x, a as y } from "server";
|
||||
export import defaultBinding4, { x, a as y } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
@@ -42,13 +42,13 @@ tests/cases/compiler/client.ts(11,34): error TS2305: Module '"tests/cases/compil
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x1: number = defaultBinding4;
|
||||
export import defaultBinding5, { x as z, } from "server";
|
||||
export import defaultBinding5, { x as z, } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
export var x1: number = defaultBinding5;
|
||||
export import defaultBinding6, { m, } from "server";
|
||||
export import defaultBinding6, { m, } from "./server";
|
||||
~~~~~~
|
||||
!!! error TS1191: An import declaration cannot have modifiers.
|
||||
~
|
||||
|
||||
+12
-12
@@ -6,17 +6,17 @@ var a = 10;
|
||||
export default a;
|
||||
|
||||
//// [client.ts]
|
||||
export import defaultBinding1, { } from "server";
|
||||
export import defaultBinding1, { } from "./server";
|
||||
export var x1: number = defaultBinding1;
|
||||
export import defaultBinding2, { a } from "server";
|
||||
export import defaultBinding2, { a } from "./server";
|
||||
export var x1: number = defaultBinding2;
|
||||
export import defaultBinding3, { a as b } from "server";
|
||||
export import defaultBinding3, { a as b } from "./server";
|
||||
export var x1: number = defaultBinding3;
|
||||
export import defaultBinding4, { x, a as y } from "server";
|
||||
export import defaultBinding4, { x, a as y } from "./server";
|
||||
export var x1: number = defaultBinding4;
|
||||
export import defaultBinding5, { x as z, } from "server";
|
||||
export import defaultBinding5, { x as z, } from "./server";
|
||||
export var x1: number = defaultBinding5;
|
||||
export import defaultBinding6, { m, } from "server";
|
||||
export import defaultBinding6, { m, } from "./server";
|
||||
export var x1: number = defaultBinding6;
|
||||
|
||||
|
||||
@@ -25,17 +25,17 @@ var a = 10;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = a;
|
||||
//// [client.js]
|
||||
var server_1 = require("server");
|
||||
var server_1 = require("./server");
|
||||
exports.x1 = server_1.default;
|
||||
var server_2 = require("server");
|
||||
var server_2 = require("./server");
|
||||
exports.x1 = server_2.default;
|
||||
var server_3 = require("server");
|
||||
var server_3 = require("./server");
|
||||
exports.x1 = server_3.default;
|
||||
var server_4 = require("server");
|
||||
var server_4 = require("./server");
|
||||
exports.x1 = server_4.default;
|
||||
var server_5 = require("server");
|
||||
var server_5 = require("./server");
|
||||
exports.x1 = server_5.default;
|
||||
var server_6 = require("server");
|
||||
var server_6 = require("./server");
|
||||
exports.x1 = server_6.default;
|
||||
|
||||
|
||||
|
||||
+6
-6
@@ -16,27 +16,27 @@ tests/cases/compiler/client.ts(11,8): error TS1192: Module '"tests/cases/compile
|
||||
export class x11 { }
|
||||
|
||||
==== tests/cases/compiler/client.ts (6 errors) ====
|
||||
import defaultBinding1, { } from "server";
|
||||
import defaultBinding1, { } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
import defaultBinding2, { a } from "server";
|
||||
import defaultBinding2, { a } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x1 = new a();
|
||||
import defaultBinding3, { a11 as b } from "server";
|
||||
import defaultBinding3, { a11 as b } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x2 = new b();
|
||||
import defaultBinding4, { x, a12 as y } from "server";
|
||||
import defaultBinding4, { x, a12 as y } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x4 = new x();
|
||||
export var x5 = new y();
|
||||
import defaultBinding5, { x11 as z, } from "server";
|
||||
import defaultBinding5, { x11 as z, } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x3 = new z();
|
||||
import defaultBinding6, { m, } from "server";
|
||||
import defaultBinding6, { m, } from "./server";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x6 = new m();
|
||||
|
||||
@@ -10,17 +10,17 @@ export class a12 { }
|
||||
export class x11 { }
|
||||
|
||||
//// [client.ts]
|
||||
import defaultBinding1, { } from "server";
|
||||
import defaultBinding2, { a } from "server";
|
||||
import defaultBinding1, { } from "./server";
|
||||
import defaultBinding2, { a } from "./server";
|
||||
export var x1 = new a();
|
||||
import defaultBinding3, { a11 as b } from "server";
|
||||
import defaultBinding3, { a11 as b } from "./server";
|
||||
export var x2 = new b();
|
||||
import defaultBinding4, { x, a12 as y } from "server";
|
||||
import defaultBinding4, { x, a12 as y } from "./server";
|
||||
export var x4 = new x();
|
||||
export var x5 = new y();
|
||||
import defaultBinding5, { x11 as z, } from "server";
|
||||
import defaultBinding5, { x11 as z, } from "./server";
|
||||
export var x3 = new z();
|
||||
import defaultBinding6, { m, } from "server";
|
||||
import defaultBinding6, { m, } from "./server";
|
||||
export var x6 = new m();
|
||||
|
||||
|
||||
@@ -62,16 +62,16 @@ var x11 = (function () {
|
||||
})();
|
||||
exports.x11 = x11;
|
||||
//// [client.js]
|
||||
var server_1 = require("server");
|
||||
var server_1 = require("./server");
|
||||
exports.x1 = new server_1.a();
|
||||
var server_2 = require("server");
|
||||
var server_2 = require("./server");
|
||||
exports.x2 = new server_2.a11();
|
||||
var server_3 = require("server");
|
||||
var server_3 = require("./server");
|
||||
exports.x4 = new server_3.x();
|
||||
exports.x5 = new server_3.a12();
|
||||
var server_4 = require("server");
|
||||
var server_4 = require("./server");
|
||||
exports.x3 = new server_4.x11();
|
||||
var server_5 = require("server");
|
||||
var server_5 = require("./server");
|
||||
exports.x6 = new server_5.m();
|
||||
|
||||
|
||||
@@ -89,14 +89,14 @@ export declare class a12 {
|
||||
export declare class x11 {
|
||||
}
|
||||
//// [client.d.ts]
|
||||
import { a } from "server";
|
||||
import { a } from "./server";
|
||||
export declare var x1: a;
|
||||
import { a11 as b } from "server";
|
||||
import { a11 as b } from "./server";
|
||||
export declare var x2: b;
|
||||
import { x, a12 as y } from "server";
|
||||
import { x, a12 as y } from "./server";
|
||||
export declare var x4: x;
|
||||
export declare var x5: y;
|
||||
import { x11 as z } from "server";
|
||||
import { x11 as z } from "./server";
|
||||
export declare var x3: z;
|
||||
import { m } from "server";
|
||||
import { m } from "./server";
|
||||
export declare var x6: m;
|
||||
+6
-6
@@ -12,27 +12,27 @@ tests/cases/compiler/client.ts(11,27): error TS2305: Module '"tests/cases/compil
|
||||
export default a;
|
||||
|
||||
==== tests/cases/compiler/client.ts (6 errors) ====
|
||||
import defaultBinding1, { } from "server";
|
||||
import defaultBinding1, { } from "./server";
|
||||
export var x1 = new defaultBinding1();
|
||||
import defaultBinding2, { a } from "server";
|
||||
import defaultBinding2, { a } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x2 = new defaultBinding2();
|
||||
import defaultBinding3, { a as b } from "server";
|
||||
import defaultBinding3, { a as b } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x3 = new defaultBinding3();
|
||||
import defaultBinding4, { x, a as y } from "server";
|
||||
import defaultBinding4, { x, a as y } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'a'.
|
||||
export var x4 = new defaultBinding4();
|
||||
import defaultBinding5, { x as z, } from "server";
|
||||
import defaultBinding5, { x as z, } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'x'.
|
||||
export var x5 = new defaultBinding5();
|
||||
import defaultBinding6, { m, } from "server";
|
||||
import defaultBinding6, { m, } from "./server";
|
||||
~
|
||||
!!! error TS2305: Module '"tests/cases/compiler/server"' has no exported member 'm'.
|
||||
export var x6 = new defaultBinding6();
|
||||
@@ -6,17 +6,17 @@ class a { }
|
||||
export default a;
|
||||
|
||||
//// [client.ts]
|
||||
import defaultBinding1, { } from "server";
|
||||
import defaultBinding1, { } from "./server";
|
||||
export var x1 = new defaultBinding1();
|
||||
import defaultBinding2, { a } from "server";
|
||||
import defaultBinding2, { a } from "./server";
|
||||
export var x2 = new defaultBinding2();
|
||||
import defaultBinding3, { a as b } from "server";
|
||||
import defaultBinding3, { a as b } from "./server";
|
||||
export var x3 = new defaultBinding3();
|
||||
import defaultBinding4, { x, a as y } from "server";
|
||||
import defaultBinding4, { x, a as y } from "./server";
|
||||
export var x4 = new defaultBinding4();
|
||||
import defaultBinding5, { x as z, } from "server";
|
||||
import defaultBinding5, { x as z, } from "./server";
|
||||
export var x5 = new defaultBinding5();
|
||||
import defaultBinding6, { m, } from "server";
|
||||
import defaultBinding6, { m, } from "./server";
|
||||
export var x6 = new defaultBinding6();
|
||||
|
||||
//// [server.js]
|
||||
@@ -28,17 +28,17 @@ var a = (function () {
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = a;
|
||||
//// [client.js]
|
||||
var server_1 = require("server");
|
||||
var server_1 = require("./server");
|
||||
exports.x1 = new server_1.default();
|
||||
var server_2 = require("server");
|
||||
var server_2 = require("./server");
|
||||
exports.x2 = new server_2.default();
|
||||
var server_3 = require("server");
|
||||
var server_3 = require("./server");
|
||||
exports.x3 = new server_3.default();
|
||||
var server_4 = require("server");
|
||||
var server_4 = require("./server");
|
||||
exports.x4 = new server_4.default();
|
||||
var server_5 = require("server");
|
||||
var server_5 = require("./server");
|
||||
exports.x5 = new server_5.default();
|
||||
var server_6 = require("server");
|
||||
var server_6 = require("./server");
|
||||
exports.x6 = new server_6.default();
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ declare class a {
|
||||
}
|
||||
export default a;
|
||||
//// [client.d.ts]
|
||||
import defaultBinding1 from "server";
|
||||
import defaultBinding1 from "./server";
|
||||
export declare var x1: defaultBinding1;
|
||||
export declare var x2: defaultBinding1;
|
||||
export declare var x3: defaultBinding1;
|
||||
|
||||
+6
-6
@@ -13,27 +13,27 @@ tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts(11
|
||||
export var m = a;
|
||||
|
||||
==== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts (6 errors) ====
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
var x1: number = a;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
var x1: number = b;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
var x1: number = x;
|
||||
var x1: number = y;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
var x1: number = z;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
~~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportInEs5_0"' has no default export.
|
||||
var x1: number = m;
|
||||
|
||||
@@ -7,17 +7,17 @@ export var x = a;
|
||||
export var m = a;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.ts]
|
||||
import defaultBinding1, { } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding2, { a } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding1, { } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding2, { a } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
var x1: number = a;
|
||||
import defaultBinding3, { a as b } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding3, { a as b } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
var x1: number = b;
|
||||
import defaultBinding4, { x, a as y } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding4, { x, a as y } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
var x1: number = x;
|
||||
var x1: number = y;
|
||||
import defaultBinding5, { x as z, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding5, { x as z, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
var x1: number = z;
|
||||
import defaultBinding6, { m, } from "es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
import defaultBinding6, { m, } from "./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0";
|
||||
var x1: number = m;
|
||||
|
||||
|
||||
@@ -26,16 +26,16 @@ exports.a = 10;
|
||||
exports.x = exports.a;
|
||||
exports.m = exports.a;
|
||||
//// [es6ImportDefaultBindingFollowedWithNamedImportInEs5_1.js]
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_1 = require("es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_1.a;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_2 = require("es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_2 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_2.a;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_3 = require("es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_3 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_3.x;
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_3.a;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_4 = require("es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_4 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_4.x;
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_5 = require("es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_5 = require("./es6ImportDefaultBindingFollowedWithNamedImportInEs5_0");
|
||||
var x1 = es6ImportDefaultBindingFollowedWithNamedImportInEs5_0_5.m;
|
||||
|
||||
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@ var a = 10;
|
||||
export default a;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts]
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
var x: number = defaultBinding;
|
||||
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.js]
|
||||
@@ -14,7 +14,7 @@ var a = 10;
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = a;
|
||||
//// [es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.js]
|
||||
var es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = require("es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"), nameSpaceBinding = es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1;
|
||||
var es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1 = require("./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0"), nameSpaceBinding = es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1;
|
||||
var x = es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0_1.default;
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ export default a;
|
||||
>a : Symbol(a, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0.ts, 1, 3))
|
||||
|
||||
=== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts ===
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
>defaultBinding : Symbol(defaultBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 6))
|
||||
>nameSpaceBinding : Symbol(nameSpaceBinding, Decl(es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts, 0, 22))
|
||||
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@ export default a;
|
||||
>a : number
|
||||
|
||||
=== tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_1.ts ===
|
||||
import defaultBinding, * as nameSpaceBinding from "es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
import defaultBinding, * as nameSpaceBinding from "./es6ImportDefaultBindingFollowedWithNamespaceBindingInEs5_0";
|
||||
>defaultBinding : number
|
||||
>nameSpaceBinding : typeof nameSpaceBinding
|
||||
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@ tests/cases/compiler/client.ts(1,8): error TS1192: Module '"tests/cases/compiler
|
||||
export class a { }
|
||||
|
||||
==== tests/cases/compiler/client.ts (1 errors) ====
|
||||
import defaultBinding, * as nameSpaceBinding from "server";
|
||||
import defaultBinding, * as nameSpaceBinding from "./server";
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS1192: Module '"tests/cases/compiler/server"' has no default export.
|
||||
export var x = new nameSpaceBinding.a();
|
||||
Loaded 100 of 396 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user