mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-07 14:34:35 -06:00
Remove stale baselines
This commit is contained in:
parent
1b6d7ed5bb
commit
913143dfda
@ -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;
|
||||
@ -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) ====
|
||||
/// <reference path="file1.d.ts"/>
|
||||
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;
|
||||
@ -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;
|
||||
@ -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) ====
|
||||
/// <reference path="file1.d.ts"/>
|
||||
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;
|
||||
@ -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"
|
||||
|
||||
(<any>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"
|
||||
|
||||
(<any>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<T> {
|
||||
filter(pred: (e:T) => boolean): Observable<T>;
|
||||
}
|
||||
|
||||
==== tests/cases/compiler/main.ts (0 errors) ====
|
||||
import { Observable } from "./observable"
|
||||
import "./map1";
|
||||
import "./map2";
|
||||
|
||||
let x: Observable<number>;
|
||||
|
||||
@ -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"
|
||||
|
||||
(<any>Observable.prototype).map = function() { }
|
||||
|
||||
declare module "./observable" {
|
||||
interface Observable<T> {
|
||||
map<U>(proj: (e:T) => U): Observable<U>
|
||||
}
|
||||
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<T> {
|
||||
filter(pred: (e:T) => boolean): Observable<T>;
|
||||
}
|
||||
|
||||
==== tests/cases/compiler/main.ts (0 errors) ====
|
||||
import { Observable } from "./observable"
|
||||
import "./map";
|
||||
|
||||
let x: Observable<number>;
|
||||
let y = x.map(x => x + 1);
|
||||
@ -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))
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user