From 913143dfdadebe65cb6189de95bd3d755cbbf6ae Mon Sep 17 00:00:00 2001 From: Ryan Cavanaugh Date: Thu, 5 May 2016 14:56:03 -0700 Subject: [PATCH] Remove stale baselines --- .../reference/augmentExportEquals3.errors.txt | 31 ---------- .../augmentExportEquals3_1.errors.txt | 34 ----------- .../reference/augmentExportEquals4.errors.txt | 31 ---------- .../augmentExportEquals4_1.errors.txt | 35 ------------ ...onCollidingNamesInAugmentation1.errors.txt | 40 ------------- .../moduleAugmentationNoNewNames.errors.txt | 47 ---------------- .../newNamesInGlobalAugmentations1.symbols | 53 ------------------ .../newNamesInGlobalAugmentations1.types | 56 ------------------- 8 files changed, 327 deletions(-) delete mode 100644 tests/baselines/reference/augmentExportEquals3.errors.txt delete mode 100644 tests/baselines/reference/augmentExportEquals3_1.errors.txt delete mode 100644 tests/baselines/reference/augmentExportEquals4.errors.txt delete mode 100644 tests/baselines/reference/augmentExportEquals4_1.errors.txt delete mode 100644 tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.errors.txt delete mode 100644 tests/baselines/reference/moduleAugmentationNoNewNames.errors.txt delete mode 100644 tests/baselines/reference/newNamesInGlobalAugmentations1.symbols delete mode 100644 tests/baselines/reference/newNamesInGlobalAugmentations1.types diff --git a/tests/baselines/reference/augmentExportEquals3.errors.txt b/tests/baselines/reference/augmentExportEquals3.errors.txt deleted file mode 100644 index 9fe63d84fb6..00000000000 --- a/tests/baselines/reference/augmentExportEquals3.errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -tests/cases/compiler/file2.ts(6,15): error TS2665: Module augmentation cannot introduce new names in the top level scope. -tests/cases/compiler/file2.ts(7,9): error TS2665: Module augmentation cannot introduce new names in the top level scope. - - -==== tests/cases/compiler/file1.ts (0 errors) ==== - - function foo() {} - namespace foo { - export var v = 1; - } - export = foo; - -==== tests/cases/compiler/file2.ts (2 errors) ==== - import x = require("./file1"); - x.b = 1; - - // OK - './file1' is a namespace - declare module "./file1" { - interface A { a } - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - let b: number; - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - } - -==== tests/cases/compiler/file3.ts (0 errors) ==== - import * as x from "./file1"; - import "./file2"; - let a: x.A; - let b = x.b; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals3_1.errors.txt b/tests/baselines/reference/augmentExportEquals3_1.errors.txt deleted file mode 100644 index 9fb0ce5f169..00000000000 --- a/tests/baselines/reference/augmentExportEquals3_1.errors.txt +++ /dev/null @@ -1,34 +0,0 @@ -tests/cases/compiler/file2.ts(7,15): error TS2665: Module augmentation cannot introduce new names in the top level scope. -tests/cases/compiler/file2.ts(8,9): error TS2665: Module augmentation cannot introduce new names in the top level scope. - - -==== tests/cases/compiler/file1.d.ts (0 errors) ==== - declare module "file1" { - function foo(): void; - namespace foo { - export var v: number; - } - export = foo; - } - - -==== tests/cases/compiler/file2.ts (2 errors) ==== - /// - import x = require("file1"); - x.b = 1; - - // OK - './file1' is a namespace - declare module "file1" { - interface A { a } - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - let b: number; - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - } - -==== tests/cases/compiler/file3.ts (0 errors) ==== - import * as x from "file1"; - import "file2"; - let a: x.A; - let b = x.b; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals4.errors.txt b/tests/baselines/reference/augmentExportEquals4.errors.txt deleted file mode 100644 index 20f7cc32d9f..00000000000 --- a/tests/baselines/reference/augmentExportEquals4.errors.txt +++ /dev/null @@ -1,31 +0,0 @@ -tests/cases/compiler/file2.ts(6,15): error TS2665: Module augmentation cannot introduce new names in the top level scope. -tests/cases/compiler/file2.ts(7,9): error TS2665: Module augmentation cannot introduce new names in the top level scope. - - -==== tests/cases/compiler/file1.ts (0 errors) ==== - - class foo {} - namespace foo { - export var v = 1; - } - export = foo; - -==== tests/cases/compiler/file2.ts (2 errors) ==== - import x = require("./file1"); - x.b = 1; - - // OK - './file1' is a namespace - declare module "./file1" { - interface A { a } - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - let b: number; - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - } - -==== tests/cases/compiler/file3.ts (0 errors) ==== - import * as x from "./file1"; - import "./file2"; - let a: x.A; - let b = x.b; \ No newline at end of file diff --git a/tests/baselines/reference/augmentExportEquals4_1.errors.txt b/tests/baselines/reference/augmentExportEquals4_1.errors.txt deleted file mode 100644 index a401f7a24cf..00000000000 --- a/tests/baselines/reference/augmentExportEquals4_1.errors.txt +++ /dev/null @@ -1,35 +0,0 @@ -tests/cases/compiler/file2.ts(7,15): error TS2665: Module augmentation cannot introduce new names in the top level scope. -tests/cases/compiler/file2.ts(8,9): error TS2665: Module augmentation cannot introduce new names in the top level scope. - - -==== tests/cases/compiler/file1.d.ts (0 errors) ==== - - declare module "file1" { - class foo {} - namespace foo { - export var v: number; - } - export = foo; - } - - -==== tests/cases/compiler/file2.ts (2 errors) ==== - /// - import x = require("file1"); - x.b = 1; - - // OK - './file1' is a namespace - declare module "file1" { - interface A { a } - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - let b: number; - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - } - -==== tests/cases/compiler/file3.ts (0 errors) ==== - import * as x from "file1"; - import "file2"; - let a: x.A; - let b = x.b; \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.errors.txt b/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.errors.txt deleted file mode 100644 index 8e1bc337b39..00000000000 --- a/tests/baselines/reference/moduleAugmentationCollidingNamesInAugmentation1.errors.txt +++ /dev/null @@ -1,40 +0,0 @@ -tests/cases/compiler/map1.ts(7,15): error TS2665: Module augmentation cannot introduce new names in the top level scope. -tests/cases/compiler/map2.ts(6,15): error TS2665: Module augmentation cannot introduce new names in the top level scope. - - -==== tests/cases/compiler/map1.ts (1 errors) ==== - - import { Observable } from "./observable" - - (Observable.prototype).map = function() { } - - declare module "./observable" { - interface I {x0} - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - } - -==== tests/cases/compiler/map2.ts (1 errors) ==== - import { Observable } from "./observable" - - (Observable.prototype).map = function() { } - - declare module "./observable" { - interface I {x1} - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - } - - -==== tests/cases/compiler/observable.ts (0 errors) ==== - export declare class Observable { - filter(pred: (e:T) => boolean): Observable; - } - -==== tests/cases/compiler/main.ts (0 errors) ==== - import { Observable } from "./observable" - import "./map1"; - import "./map2"; - - let x: Observable; - \ No newline at end of file diff --git a/tests/baselines/reference/moduleAugmentationNoNewNames.errors.txt b/tests/baselines/reference/moduleAugmentationNoNewNames.errors.txt deleted file mode 100644 index 7c7f17cd641..00000000000 --- a/tests/baselines/reference/moduleAugmentationNoNewNames.errors.txt +++ /dev/null @@ -1,47 +0,0 @@ -tests/cases/compiler/map.ts(10,11): error TS2665: Module augmentation cannot introduce new names in the top level scope. -tests/cases/compiler/map.ts(11,9): error TS2665: Module augmentation cannot introduce new names in the top level scope. -tests/cases/compiler/map.ts(11,20): error TS2665: Module augmentation cannot introduce new names in the top level scope. -tests/cases/compiler/map.ts(12,13): error TS2665: Module augmentation cannot introduce new names in the top level scope. -tests/cases/compiler/map.ts(12,19): error TS2665: Module augmentation cannot introduce new names in the top level scope. -tests/cases/compiler/map.ts(13,12): error TS2665: Module augmentation cannot introduce new names in the top level scope. - - -==== tests/cases/compiler/map.ts (6 errors) ==== - - import { Observable } from "./observable" - - (Observable.prototype).map = function() { } - - declare module "./observable" { - interface Observable { - map(proj: (e:T) => U): Observable - } - class Bar {} - ~~~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - let y: number, z: string; - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - let {a: x, b: x1}: {a: number, b: number}; - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - ~~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - module Z {} - ~ -!!! error TS2665: Module augmentation cannot introduce new names in the top level scope. - } - -==== tests/cases/compiler/observable.ts (0 errors) ==== - export declare class Observable { - filter(pred: (e:T) => boolean): Observable; - } - -==== tests/cases/compiler/main.ts (0 errors) ==== - import { Observable } from "./observable" - import "./map"; - - let x: Observable; - let y = x.map(x => x + 1); \ No newline at end of file diff --git a/tests/baselines/reference/newNamesInGlobalAugmentations1.symbols b/tests/baselines/reference/newNamesInGlobalAugmentations1.symbols deleted file mode 100644 index 955061ee116..00000000000 --- a/tests/baselines/reference/newNamesInGlobalAugmentations1.symbols +++ /dev/null @@ -1,53 +0,0 @@ -=== tests/cases/compiler/f1.d.ts === - -export {}; - -declare module M.M1 { ->M : Symbol(M, Decl(f1.d.ts, 1, 10)) ->M1 : Symbol(M1, Decl(f1.d.ts, 3, 17)) - - export let x: number; ->x : Symbol(x, Decl(f1.d.ts, 4, 14)) -} -declare global { ->global : Symbol(, Decl(f1.d.ts, 5, 1)) - - interface SymbolConstructor { ->SymbolConstructor : Symbol(SymbolConstructor, Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2015.iterable.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(f1.d.ts, 6, 16)) - - observable: symbol; ->observable : Symbol(SymbolConstructor.observable, Decl(f1.d.ts, 7, 33)) - } - class Cls {x} ->Cls : Symbol(Cls, Decl(f1.d.ts, 9, 5)) ->x : Symbol(Cls.x, Decl(f1.d.ts, 10, 15)) - - let [a, b]: number[]; ->a : Symbol(a, Decl(f1.d.ts, 11, 9)) ->b : Symbol(b, Decl(f1.d.ts, 11, 11)) - - export import X = M.M1.x; ->X : Symbol(X, Decl(f1.d.ts, 11, 25)) ->M : Symbol(M, Decl(f1.d.ts, 1, 10)) ->M1 : Symbol(M.M1, Decl(f1.d.ts, 3, 17)) ->x : Symbol(X, Decl(f1.d.ts, 4, 14)) -} - -=== tests/cases/compiler/main.ts === - -Symbol.observable; ->Symbol.observable : Symbol(SymbolConstructor.observable, Decl(f1.d.ts, 7, 33)) ->Symbol : Symbol(Symbol, Decl(lib.es2015.symbol.wellknown.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --), Decl(lib.es2015.symbol.d.ts, --, --)) ->observable : Symbol(SymbolConstructor.observable, Decl(f1.d.ts, 7, 33)) - -new Cls().x ->new Cls().x : Symbol(Cls.x, Decl(f1.d.ts, 10, 15)) ->Cls : Symbol(Cls, Decl(f1.d.ts, 9, 5)) ->x : Symbol(Cls.x, Decl(f1.d.ts, 10, 15)) - -let c = a + b + X; ->c : Symbol(c, Decl(main.ts, 3, 3)) ->a : Symbol(a, Decl(f1.d.ts, 11, 9)) ->b : Symbol(b, Decl(f1.d.ts, 11, 11)) ->X : Symbol(X, Decl(f1.d.ts, 11, 25)) - diff --git a/tests/baselines/reference/newNamesInGlobalAugmentations1.types b/tests/baselines/reference/newNamesInGlobalAugmentations1.types deleted file mode 100644 index a9b879fb4c5..00000000000 --- a/tests/baselines/reference/newNamesInGlobalAugmentations1.types +++ /dev/null @@ -1,56 +0,0 @@ -=== tests/cases/compiler/f1.d.ts === - -export {}; - -declare module M.M1 { ->M : typeof M ->M1 : typeof M1 - - export let x: number; ->x : number -} -declare global { ->global : any - - interface SymbolConstructor { ->SymbolConstructor : SymbolConstructor - - observable: symbol; ->observable : symbol - } - class Cls {x} ->Cls : Cls ->x : any - - let [a, b]: number[]; ->a : number ->b : number - - export import X = M.M1.x; ->X : number ->M : typeof M ->M1 : typeof M.M1 ->x : number -} - -=== tests/cases/compiler/main.ts === - -Symbol.observable; ->Symbol.observable : symbol ->Symbol : SymbolConstructor ->observable : symbol - -new Cls().x ->new Cls().x : any ->new Cls() : Cls ->Cls : typeof Cls ->x : any - -let c = a + b + X; ->c : number ->a + b + X : number ->a + b : number ->a : number ->b : number ->X : number -