Skip to content

Commit 70973bb

Browse files
committed
baseline
1 parent e777ac6 commit 70973bb

8 files changed

+67
-1
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
parserModuleDeclaration11.ts(1,16): error TS2819: Namespace name cannot be 'string'.
2+
3+
4+
==== parserModuleDeclaration11.ts (1 errors) ====
5+
declare module string {
6+
~~~~~~
7+
!!! error TS2819: Namespace name cannot be 'string'.
8+
interface X { }
9+
export function foo(s: string);
10+
}
11+
string.foo("abc");
12+
var x: string.X;
13+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parserModuleDeclaration12.ts(1,10): error TS2819: Namespace name cannot be 'string'.
2+
3+
4+
==== parserModuleDeclaration12.ts (1 errors) ====
5+
module A.string {
6+
~~~~~~
7+
!!! error TS2819: Namespace name cannot be 'string'.
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parserModuleDeclaration6.ts(1,8): error TS2819: Namespace name cannot be 'number'.
2+
3+
4+
==== parserModuleDeclaration6.ts (1 errors) ====
5+
module number {
6+
~~~~~~
7+
!!! error TS2819: Namespace name cannot be 'number'.
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parserModuleDeclaration7.ts(1,8): error TS2819: Namespace name cannot be 'number'.
2+
3+
4+
==== parserModuleDeclaration7.ts (1 errors) ====
5+
module number.a {
6+
~~~~~~
7+
!!! error TS2819: Namespace name cannot be 'number'.
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parserModuleDeclaration8.ts(1,10): error TS2819: Namespace name cannot be 'number'.
2+
3+
4+
==== parserModuleDeclaration8.ts (1 errors) ====
5+
module a.number {
6+
~~~~~~
7+
!!! error TS2819: Namespace name cannot be 'number'.
8+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
parserModuleDeclaration9.ts(1,10): error TS2819: Namespace name cannot be 'number'.
2+
3+
4+
==== parserModuleDeclaration9.ts (1 errors) ====
5+
module a.number.b {
6+
~~~~~~
7+
!!! error TS2819: Namespace name cannot be 'number'.
8+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
primitiveTypeAsmoduleName.ts(1,8): error TS2819: Namespace name cannot be 'string'.
2+
3+
4+
==== primitiveTypeAsmoduleName.ts (1 errors) ====
5+
module string {}
6+
~~~~~~
7+
!!! error TS2819: Namespace name cannot be 'string'.

tests/baselines/reference/typeNamedUndefined2.errors.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
typeNamedUndefined2.ts(2,22): error TS2819: Namespace name cannot be 'undefined'.
12
typeNamedUndefined2.ts(4,21): error TS2457: Type alias name cannot be 'undefined'.
3+
typeNamedUndefined2.ts(15,18): error TS2819: Namespace name cannot be 'undefined'.
24
typeNamedUndefined2.ts(17,17): error TS2457: Type alias name cannot be 'undefined'.
35

46

5-
==== typeNamedUndefined2.ts (2 errors) ====
7+
==== typeNamedUndefined2.ts (4 errors) ====
68
export namespace ns {
79
export namespace undefined {
10+
~~~~~~~~~
11+
!!! error TS2819: Namespace name cannot be 'undefined'.
812
export const s = Symbol();
913
export type undefined = typeof s;
1014
~~~~~~~~~
@@ -20,6 +24,8 @@ typeNamedUndefined2.ts(17,17): error TS2457: Type alias name cannot be 'undefine
2024
}
2125

2226
export namespace undefined {
27+
~~~~~~~~~
28+
!!! error TS2819: Namespace name cannot be 'undefined'.
2329
export const s = Symbol();
2430
export type undefined = typeof s;
2531
~~~~~~~~~

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy