Home
last modified time | relevance | path

Searched refs:ambient (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/third_party/typescript/tests/baselines/reference/
DambientErrors.errors.txt1 tests/cases/conformance/ambient/ambientErrors.ts(2,17): error TS1039: Initializers are not allowed …
2 tests/cases/conformance/ambient/ambientErrors.ts(17,22): error TS2371: A parameter initializer is o…
3 tests/cases/conformance/ambient/ambientErrors.ts(20,24): error TS1183: An implementation cannot be …
4 tests/cases/conformance/ambient/ambientErrors.ts(29,9): error TS1066: In ambient enum declarations …
5 tests/cases/conformance/ambient/ambientErrors.ts(34,13): error TS1039: Initializers are not allowed…
6 tests/cases/conformance/ambient/ambientErrors.ts(35,19): error TS1183: An implementation cannot be …
7 tests/cases/conformance/ambient/ambientErrors.ts(37,20): error TS1039: Initializers are not allowed…
8 tests/cases/conformance/ambient/ambientErrors.ts(38,13): error TS1039: Initializers are not allowed…
9 tests/cases/conformance/ambient/ambientErrors.ts(39,23): error TS1183: An implementation cannot be …
10 tests/cases/conformance/ambient/ambientErrors.ts(40,14): error TS1183: An implementation cannot be …
[all …]
DconstDeclarations-ambient-errors.errors.txt1 …sts/cases/compiler/constDeclarations-ambient-errors.ts(2,29): error TS1039: Initializers are not a…
2 …sts/cases/compiler/constDeclarations-ambient-errors.ts(3,28): error TS1039: Initializers are not a…
3 tests/cases/compiler/constDeclarations-ambient-errors.ts(4,20): error TS1254: A 'const' initializer…
4 …sts/cases/compiler/constDeclarations-ambient-errors.ts(4,39): error TS1039: Initializers are not a…
5 …sts/cases/compiler/constDeclarations-ambient-errors.ts(4,53): error TS1039: Initializers are not a…
6 …sts/cases/compiler/constDeclarations-ambient-errors.ts(8,24): error TS1039: Initializers are not a…
9 ==== tests/cases/compiler/constDeclarations-ambient-errors.ts (6 errors) ====
10 // error: no intialization expected in ambient declarations
13 !!! error TS1039: Initializers are not allowed in ambient contexts.
16 !!! error TS1039: Initializers are not allowed in ambient contexts.
[all …]
DvarBlock.errors.txt1 tests/cases/compiler/varBlock.ts(8,18): error TS1039: Initializers are not allowed in ambient conte…
4 tests/cases/compiler/varBlock.ts(15,17): error TS1039: Initializers are not allowed in ambient cont…
5 tests/cases/compiler/varBlock.ts(21,18): error TS1039: Initializers are not allowed in ambient cont…
6 tests/cases/compiler/varBlock.ts(22,22): error TS1039: Initializers are not allowed in ambient cont…
7 tests/cases/compiler/varBlock.ts(25,21): error TS1039: Initializers are not allowed in ambient cont…
8 tests/cases/compiler/varBlock.ts(26,26): error TS1039: Initializers are not allowed in ambient cont…
9 tests/cases/compiler/varBlock.ts(26,35): error TS1039: Initializers are not allowed in ambient cont…
10 tests/cases/compiler/varBlock.ts(27,29): error TS1039: Initializers are not allowed in ambient cont…
11 tests/cases/compiler/varBlock.ts(28,35): error TS1039: Initializers are not allowed in ambient cont…
12 tests/cases/compiler/varBlock.ts(28,45): error TS1039: Initializers are not allowed in ambient cont…
[all …]
DaccessorsInAmbientContext.errors.txt1 …sInAmbientContext.ts(3,17): error TS1183: An implementation cannot be declared in ambient contexts.
2 …sInAmbientContext.ts(4,18): error TS1183: An implementation cannot be declared in ambient contexts.
3 …sInAmbientContext.ts(6,24): error TS1183: An implementation cannot be declared in ambient contexts.
4 …sInAmbientContext.ts(7,25): error TS1183: An implementation cannot be declared in ambient contexts.
5 …InAmbientContext.ts(12,13): error TS1183: An implementation cannot be declared in ambient contexts.
6 …InAmbientContext.ts(13,14): error TS1183: An implementation cannot be declared in ambient contexts.
7 …InAmbientContext.ts(15,20): error TS1183: An implementation cannot be declared in ambient contexts.
8 …InAmbientContext.ts(16,21): error TS1183: An implementation cannot be declared in ambient contexts.
16 !!! error TS1183: An implementation cannot be declared in ambient contexts.
19 !!! error TS1183: An implementation cannot be declared in ambient contexts.
[all …]
DinitializersInDeclarations.errors.txt1 …ce/externalModules/file1.d.ts(4,9): error TS1039: Initializers are not allowed in ambient contexts.
2 …e/externalModules/file1.d.ts(5,16): error TS1039: Initializers are not allowed in ambient contexts.
3 …alModules/file1.d.ts(6,16): error TS1183: An implementation cannot be declared in ambient contexts.
4 …/externalModules/file1.d.ts(11,17): error TS1039: Initializers are not allowed in ambient contexts.
5 …/externalModules/file1.d.ts(12,17): error TS1039: Initializers are not allowed in ambient contexts.
6 …nce/externalModules/file1.d.ts(15,2): error TS1036: Statements are not allowed in ambient contexts.
7 …/externalModules/file1.d.ts(17,18): error TS1039: Initializers are not allowed in ambient contexts.
16 !!! error TS1039: Initializers are not allowed in ambient contexts.
19 !!! error TS1039: Initializers are not allowed in ambient contexts.
22 !!! error TS1183: An implementation cannot be declared in ambient contexts.
[all …]
DconstDeclarations-ambient-errors.symbols1 === tests/cases/compiler/constDeclarations-ambient-errors.ts ===
2 // error: no intialization expected in ambient declarations
4 >c1 : Symbol(c1, Decl(constDeclarations-ambient-errors.ts, 1, 13))
7 >c2 : Symbol(c2, Decl(constDeclarations-ambient-errors.ts, 2, 13))
10 >c3 : Symbol(c3, Decl(constDeclarations-ambient-errors.ts, 3, 13))
11 >c4 : Symbol(c4, Decl(constDeclarations-ambient-errors.ts, 3, 24))
12 >c5 : Symbol(c5, Decl(constDeclarations-ambient-errors.ts, 3, 41))
15 >M : Symbol(M, Decl(constDeclarations-ambient-errors.ts, 3, 54))
18 >c6 : Symbol(c6, Decl(constDeclarations-ambient-errors.ts, 6, 9))
21 >c7 : Symbol(c7, Decl(constDeclarations-ambient-errors.ts, 7, 9))
DconstDeclarations-ambient.symbols1 === tests/cases/compiler/constDeclarations-ambient.ts ===
4 >c1 : Symbol(c1, Decl(constDeclarations-ambient.ts, 1, 13))
7 >c2 : Symbol(c2, Decl(constDeclarations-ambient.ts, 2, 13))
10 >c3 : Symbol(c3, Decl(constDeclarations-ambient.ts, 3, 13))
11 >c4 : Symbol(c4, Decl(constDeclarations-ambient.ts, 3, 17))
12 >c5 : Symbol(c5, Decl(constDeclarations-ambient.ts, 3, 29))
15 >M : Symbol(M, Decl(constDeclarations-ambient.ts, 3, 38))
18 >c6 : Symbol(c6, Decl(constDeclarations-ambient.ts, 6, 9))
21 >c7 : Symbol(c7, Decl(constDeclarations-ambient.ts, 7, 9))
DmoduleElementsInWrongContext3.types12 declare module "ambient" {
13 >"ambient" : typeof import("ambient")
26 export * from "ambient";
30 export { baz as b } from "ambient";
50 import * as Foo from "ambient";
53 import bar from "ambient";
56 import { baz } from "ambient";
59 import "ambient";
DmoduleElementsInWrongContext2.types12 declare module "ambient" {
13 >"ambient" : typeof import("ambient")
26 export * from "ambient";
30 export { baz as b } from "ambient";
50 import * as Foo from "ambient";
53 import bar from "ambient";
56 import { baz } from "ambient";
59 import "ambient";
DmoduleElementsInWrongContext.types10 declare module "ambient" {
11 >"ambient" : typeof Foo
24 export * from "ambient";
28 export { baz as b } from "ambient";
48 import * as Foo from "ambient";
51 import bar from "ambient";
54 import { baz } from "ambient";
57 import "ambient";
DaccessorBodyInTypeContext.errors.txt1 …BodyInTypeContext.ts(2,15): error TS1183: An implementation cannot be declared in ambient contexts.
2 …BodyInTypeContext.ts(6,21): error TS1183: An implementation cannot be declared in ambient contexts.
3 …odyInTypeContext.ts(10,15): error TS1183: An implementation cannot be declared in ambient contexts.
4 …odyInTypeContext.ts(14,21): error TS1183: An implementation cannot be declared in ambient contexts.
11 !!! error TS1183: An implementation cannot be declared in ambient contexts.
17 !!! error TS1183: An implementation cannot be declared in ambient contexts.
23 !!! error TS1183: An implementation cannot be declared in ambient contexts.
29 !!! error TS1183: An implementation cannot be declared in ambient contexts.
DmoduleElementsInWrongContext3.symbols19 declare module "ambient" {
20 >"ambient" : Symbol("ambient", Decl(moduleElementsInWrongContext3.ts, 7, 25))
33 export * from "ambient";
37 export { baz as b } from "ambient";
56 import * as Foo from "ambient";
59 import bar from "ambient";
62 import { baz } from "ambient";
65 import "ambient";
DmoduleElementsInWrongContext2.symbols19 declare module "ambient" {
20 >"ambient" : Symbol("ambient", Decl(moduleElementsInWrongContext2.ts, 6, 21))
33 export * from "ambient";
37 export { baz as b } from "ambient";
56 import * as Foo from "ambient";
59 import bar from "ambient";
62 import { baz } from "ambient";
65 import "ambient";
Dgiant.errors.txt47 …/compiler/giant.ts(153,39): error TS1183: An implementation cannot be declared in ambient contexts.
71 …/compiler/giant.ts(232,39): error TS1183: An implementation cannot be declared in ambient contexts.
72 …/compiler/giant.ts(237,35): error TS1183: An implementation cannot be declared in ambient contexts.
73 …/compiler/giant.ts(239,24): error TS1183: An implementation cannot be declared in ambient contexts.
74 …/compiler/giant.ts(242,21): error TS1183: An implementation cannot be declared in ambient contexts.
75 …/compiler/giant.ts(243,22): error TS1183: An implementation cannot be declared in ambient contexts.
77 …/compiler/giant.ts(244,22): error TS1183: An implementation cannot be declared in ambient contexts.
80 …/compiler/giant.ts(246,31): error TS1183: An implementation cannot be declared in ambient contexts.
83 …/compiler/giant.ts(248,23): error TS1183: An implementation cannot be declared in ambient contexts.
86 …/compiler/giant.ts(250,32): error TS1183: An implementation cannot be declared in ambient contexts.
[all …]
DdeclFileWithErrorsInInputDeclarationFile.errors.txt1 …eclFile.d.ts(2,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
2 …eclFile.d.ts(3,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
3 …eclFile.d.ts(5,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
4 …eclFile.d.ts(7,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
15 !!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
18 !!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
22 !!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
26 !!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
DdeclFileWithErrorsInInputDeclarationFileWithOut.errors.txt1 …eclFile.d.ts(2,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
2 …eclFile.d.ts(3,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
3 …eclFile.d.ts(5,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
4 …eclFile.d.ts(7,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
15 !!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
18 !!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
22 !!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
26 !!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
DmoduleElementsInWrongContext.symbols17 declare module "ambient" {
18 >"ambient" : Symbol(Foo, Decl(moduleElementsInWrongContext.ts, 6, 21))
31 export * from "ambient";
35 export { baz as b } from "ambient";
54 import * as Foo from "ambient";
57 import bar from "ambient";
60 import { baz } from "ambient";
63 import "ambient";
DgeneratorOverloads2.errors.txt1 …sions/generatorOverloads2.ts(2,13): error TS1221: Generators are not allowed in an ambient context.
2 …sions/generatorOverloads2.ts(3,13): error TS1221: Generators are not allowed in an ambient context.
3 …sions/generatorOverloads2.ts(4,13): error TS1221: Generators are not allowed in an ambient context.
10 !!! error TS1221: Generators are not allowed in an ambient context.
13 !!! error TS1221: Generators are not allowed in an ambient context.
16 !!! error TS1221: Generators are not allowed in an ambient context.
DambientExportDefaultErrors.errors.txt1 …e expression of an export assignment must be an identifier or qualified name in an ambient context.
2 …e expression of an export assignment must be an identifier or qualified name in an ambient context.
3 …e expression of an export assignment must be an identifier or qualified name in an ambient context.
4 …e expression of an export assignment must be an identifier or qualified name in an ambient context.
17 …e expression of an export assignment must be an identifier or qualified name in an ambient context.
23 …e expression of an export assignment must be an identifier or qualified name in an ambient context.
31 …e expression of an export assignment must be an identifier or qualified name in an ambient context.
39 …e expression of an export assignment must be an identifier or qualified name in an ambient context.
DoverloadsInDifferentContainersDisagreeOnAmbient.errors.txt1 …rsDisagreeOnAmbient.ts(7,21): error TS2384: Overload signatures must all be ambient or non-ambient.
6 // Error because body is not ambient and this overload is
13 !!! error TS2384: Overload signatures must all be ambient or non-ambient.
DduplicateIdentifiersAcrossFileBoundaries.errors.txt2 …er/file1.ts(4,10): error TS2814: Function with bodies can only merge with classes that are ambient.
4 …er/file2.ts(3,10): error TS2814: Function with bodies can only merge with classes that are ambient.
19 !!! error TS2814: Function with bodies can only merge with classes that are ambient.
37 class I { } // error -- cannot merge interface with non-ambient class
38 interface C1 { } // error -- cannot merge interface with non-ambient class
39 function C2() { } // error -- cannot merge function with non-ambient class
41 !!! error TS2814: Function with bodies can only merge with classes that are ambient.
43 class f { } // error -- cannot merge function with non-ambient class
59 export function F(); // no error because function is ambient
DambientExternalModuleInsideNonAmbientExternalModule.errors.txt1 …conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts(1,1): error TS2668: 'ex…
2 tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts(1,23): error…
5 ==== tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbientExternalModule.ts (2 erro…
8 !!! error TS2668: 'export' modifier cannot be applied to ambient modules and module augmentations s…
DambientExternalModuleInsideNonAmbient.errors.txt1 …/cases/conformance/ambient/ambientExternalModuleInsideNonAmbient.ts(2,5): error TS2668: 'export' m…
2 tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbient.ts(2,27): error TS2435: Ambie…
5 ==== tests/cases/conformance/ambient/ambientExternalModuleInsideNonAmbient.ts (2 errors) ====
9 !!! error TS2668: 'export' modifier cannot be applied to ambient modules and module augmentations s…
DambientDeclarationsPatterns_merging2.errors.txt1 tests/cases/conformance/ambient/testB.ts(1,22): error TS2305: Module '"*.foo"' has no exported memb…
2 tests/cases/conformance/ambient/testB.ts(1,31): error TS2305: Module '"*.foo"' has no exported memb…
5 ==== tests/cases/conformance/ambient/types.ts (0 errors) ====
11 ==== tests/cases/conformance/ambient/testA.ts (0 errors) ====
17 ==== tests/cases/conformance/ambient/testB.ts (2 errors) ====
DduplicateIdentifiersAcrossFileBoundaries.types35 class I { } // error -- cannot merge interface with non-ambient class
38 interface C1 { } // error -- cannot merge interface with non-ambient class
39 function C2() { } // error -- cannot merge function with non-ambient class
42 class f { } // error -- cannot merge function with non-ambient class
59 export function F(); // no error because function is ambient

12345678910>>...14