mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-24 02:21:30 -05:00
move checking modifiers out of parser
This commit is contained in:
@@ -11,13 +11,12 @@ tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifier
|
||||
tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts(34,12): error TS1029: 'public' modifier must precede 'static' modifier.
|
||||
tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts(35,12): error TS1029: 'public' modifier must precede 'static' modifier.
|
||||
tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts(40,13): error TS1028: Accessibility modifier already seen.
|
||||
tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts(40,20): error TS1028: Accessibility modifier already seen.
|
||||
tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts(41,12): error TS1028: Accessibility modifier already seen.
|
||||
tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts(42,13): error TS1028: Accessibility modifier already seen.
|
||||
tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts(43,12): error TS1028: Accessibility modifier already seen.
|
||||
|
||||
|
||||
==== tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts (17 errors) ====
|
||||
==== tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifiers.ts (16 errors) ====
|
||||
|
||||
// No errors
|
||||
class C {
|
||||
@@ -83,8 +82,6 @@ tests/cases/conformance/classes/propertyMemberDeclarations/accessibilityModifier
|
||||
class E {
|
||||
private public protected property;
|
||||
~~~~~~
|
||||
!!! error TS1028: Accessibility modifier already seen.
|
||||
~~~~~~~~~
|
||||
!!! error TS1028: Accessibility modifier already seen.
|
||||
public protected method() { }
|
||||
~~~~~~~~~
|
||||
|
||||
@@ -1,16 +1,12 @@
|
||||
tests/cases/compiler/exportAlreadySeen.ts(2,12): error TS1030: 'export' modifier already seen.
|
||||
tests/cases/compiler/exportAlreadySeen.ts(3,12): error TS1030: 'export' modifier already seen.
|
||||
tests/cases/compiler/exportAlreadySeen.ts(5,12): error TS1030: 'export' modifier already seen.
|
||||
tests/cases/compiler/exportAlreadySeen.ts(6,16): error TS1030: 'export' modifier already seen.
|
||||
tests/cases/compiler/exportAlreadySeen.ts(7,16): error TS1030: 'export' modifier already seen.
|
||||
tests/cases/compiler/exportAlreadySeen.ts(12,12): error TS1030: 'export' modifier already seen.
|
||||
tests/cases/compiler/exportAlreadySeen.ts(13,12): error TS1030: 'export' modifier already seen.
|
||||
tests/cases/compiler/exportAlreadySeen.ts(15,12): error TS1030: 'export' modifier already seen.
|
||||
tests/cases/compiler/exportAlreadySeen.ts(16,16): error TS1030: 'export' modifier already seen.
|
||||
tests/cases/compiler/exportAlreadySeen.ts(17,16): error TS1030: 'export' modifier already seen.
|
||||
|
||||
|
||||
==== tests/cases/compiler/exportAlreadySeen.ts (10 errors) ====
|
||||
==== tests/cases/compiler/exportAlreadySeen.ts (6 errors) ====
|
||||
module M {
|
||||
export export var x = 1;
|
||||
~~~~~~
|
||||
@@ -23,11 +19,7 @@ tests/cases/compiler/exportAlreadySeen.ts(17,16): error TS1030: 'export' modifie
|
||||
~~~~~~
|
||||
!!! error TS1030: 'export' modifier already seen.
|
||||
export export class C { }
|
||||
~~~~~~
|
||||
!!! error TS1030: 'export' modifier already seen.
|
||||
export export interface I { }
|
||||
~~~~~~
|
||||
!!! error TS1030: 'export' modifier already seen.
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,10 +35,6 @@ tests/cases/compiler/exportAlreadySeen.ts(17,16): error TS1030: 'export' modifie
|
||||
~~~~~~
|
||||
!!! error TS1030: 'export' modifier already seen.
|
||||
export export class C { }
|
||||
~~~~~~
|
||||
!!! error TS1030: 'export' modifier already seen.
|
||||
export export interface I { }
|
||||
~~~~~~
|
||||
!!! error TS1030: 'export' modifier already seen.
|
||||
}
|
||||
}
|
||||
@@ -34,10 +34,6 @@ tests/cases/compiler/giant.ts(430,9): error TS1005: '{' expected.
|
||||
tests/cases/compiler/giant.ts(432,9): error TS1005: '{' expected.
|
||||
tests/cases/compiler/giant.ts(436,9): error TS1005: '{' expected.
|
||||
tests/cases/compiler/giant.ts(438,5): error TS1005: '{' expected.
|
||||
tests/cases/compiler/giant.ts(615,16): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
tests/cases/compiler/giant.ts(616,16): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
tests/cases/compiler/giant.ts(617,16): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
tests/cases/compiler/giant.ts(618,16): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
tests/cases/compiler/giant.ts(23,12): error TS2300: Duplicate identifier 'pgF'.
|
||||
tests/cases/compiler/giant.ts(24,16): error TS2300: Duplicate identifier 'pgF'.
|
||||
tests/cases/compiler/giant.ts(24,16): error TS2378: A 'get' accessor must return a value or consist of a single 'throw' statement.
|
||||
@@ -174,7 +170,7 @@ tests/cases/compiler/giant.ts(602,9): error TS2386: Overload signatures must all
|
||||
tests/cases/compiler/giant.ts(668,9): error TS2386: Overload signatures must all be optional or required.
|
||||
|
||||
|
||||
==== tests/cases/compiler/giant.ts (174 errors) ====
|
||||
==== tests/cases/compiler/giant.ts (170 errors) ====
|
||||
|
||||
/*
|
||||
Prefixes
|
||||
@@ -1128,17 +1124,9 @@ tests/cases/compiler/giant.ts(668,9): error TS2386: Overload signatures must all
|
||||
export interface eI { }
|
||||
export module eM { }
|
||||
export declare var eaV
|
||||
~~~~~~~
|
||||
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
export declare function eaF() { };
|
||||
~~~~~~~
|
||||
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
export declare class eaC { }
|
||||
~~~~~~~
|
||||
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
export declare module eaM { }
|
||||
~~~~~~~
|
||||
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
}
|
||||
export var eV;
|
||||
export function eF() { };
|
||||
|
||||
@@ -1,17 +1,14 @@
|
||||
tests/cases/compiler/importDeclWithDeclareModifier.ts(5,1): error TS1079: A 'declare' modifier cannot be used with an import declaration.
|
||||
tests/cases/compiler/importDeclWithDeclareModifier.ts(5,1): error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
||||
tests/cases/compiler/importDeclWithDeclareModifier.ts(5,9): error TS1029: 'export' modifier must precede 'declare' modifier.
|
||||
tests/cases/compiler/importDeclWithDeclareModifier.ts(5,1): error TS2305: Module 'x' has no exported member 'c'.
|
||||
|
||||
|
||||
==== tests/cases/compiler/importDeclWithDeclareModifier.ts (4 errors) ====
|
||||
==== tests/cases/compiler/importDeclWithDeclareModifier.ts (3 errors) ====
|
||||
module x {
|
||||
interface c {
|
||||
}
|
||||
}
|
||||
declare export import a = x.c;
|
||||
~~~~~~~
|
||||
!!! error TS1079: A 'declare' modifier cannot be used with an import declaration.
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1148: Cannot compile external modules unless the '--module' flag is provided.
|
||||
~~~~~~
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
tests/cases/compiler/importDeclWithDeclareModifierInAmbientContext.ts(6,5): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
tests/cases/compiler/importDeclWithDeclareModifierInAmbientContext.ts(6,5): error TS1079: A 'declare' modifier cannot be used with an import declaration.
|
||||
tests/cases/compiler/importDeclWithDeclareModifierInAmbientContext.ts(6,13): error TS1029: 'export' modifier must precede 'declare' modifier.
|
||||
|
||||
|
||||
==== tests/cases/compiler/importDeclWithDeclareModifierInAmbientContext.ts (3 errors) ====
|
||||
==== tests/cases/compiler/importDeclWithDeclareModifierInAmbientContext.ts (1 errors) ====
|
||||
declare module "m" {
|
||||
module x {
|
||||
interface c {
|
||||
@@ -12,10 +10,6 @@ tests/cases/compiler/importDeclWithDeclareModifierInAmbientContext.ts(6,13): err
|
||||
declare export import a = x.c;
|
||||
~~~~~~~
|
||||
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
~~~~~~~
|
||||
!!! error TS1079: A 'declare' modifier cannot be used with an import declaration.
|
||||
~~~~~~
|
||||
!!! error TS1029: 'export' modifier must precede 'declare' modifier.
|
||||
var b: a;
|
||||
}
|
||||
|
||||
@@ -1,12 +1,9 @@
|
||||
tests/cases/conformance/parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration7.ts(2,10): error TS1028: Accessibility modifier already seen.
|
||||
tests/cases/conformance/parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration7.ts(2,10): error TS1089: 'private' modifier cannot appear on a constructor declaration.
|
||||
|
||||
|
||||
==== tests/cases/conformance/parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration7.ts (2 errors) ====
|
||||
==== tests/cases/conformance/parser/ecmascript5/ConstructorDeclarations/parserConstructorDeclaration7.ts (1 errors) ====
|
||||
class C {
|
||||
public private constructor() { }
|
||||
~~~~~~~
|
||||
!!! error TS1028: Accessibility modifier already seen.
|
||||
~~~~~~~
|
||||
!!! error TS1089: 'private' modifier cannot appear on a constructor declaration.
|
||||
}
|
||||
@@ -1,12 +1,9 @@
|
||||
tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts(2,4): error TS1145: Modifiers not permitted on index signature members.
|
||||
tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts(2,11): error TS1030: 'static' modifier already seen.
|
||||
|
||||
|
||||
==== tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts (2 errors) ====
|
||||
==== tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts (1 errors) ====
|
||||
class C {
|
||||
static static [x: string]: string;
|
||||
~~~~~~~~~~~~~
|
||||
!!! error TS1145: Modifiers not permitted on index signature members.
|
||||
~~~~~~
|
||||
!!! error TS1030: 'static' modifier already seen.
|
||||
}
|
||||
@@ -1,9 +1,9 @@
|
||||
tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration9.ts(2,4): error TS1031: 'export' modifier cannot appear on a class element.
|
||||
tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration9.ts(2,4): error TS1145: Modifiers not permitted on index signature members.
|
||||
|
||||
|
||||
==== tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration9.ts (1 errors) ====
|
||||
class C {
|
||||
export [x: string]: string;
|
||||
~~~~~~
|
||||
!!! error TS1031: 'export' modifier cannot appear on a class element.
|
||||
!!! error TS1145: Modifiers not permitted on index signature members.
|
||||
}
|
||||
@@ -1,13 +1,10 @@
|
||||
tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration4.d.ts(1,1): error TS1046: A 'declare' modifier is required for a top level declaration in a .d.ts file.
|
||||
tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration4.d.ts(2,3): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
|
||||
|
||||
==== tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration4.d.ts (2 errors) ====
|
||||
==== tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration4.d.ts (1 errors) ====
|
||||
module M {
|
||||
~~~~~~
|
||||
!!! error TS1046: A 'declare' modifier is required for a top level declaration in a .d.ts file.
|
||||
declare module M1 {
|
||||
~~~~~~~
|
||||
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(59,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(125,13): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(133,9): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(149,9): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(22,27): error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(30,20): error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(59,37): error TS2307: Cannot find external module 'm1_M3_public'.
|
||||
@@ -8,7 +11,7 @@ tests/cases/compiler/privacyGloImportParseErrors.ts(138,16): error TS2435: Ambie
|
||||
tests/cases/compiler/privacyGloImportParseErrors.ts(141,12): error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
|
||||
|
||||
==== tests/cases/compiler/privacyGloImportParseErrors.ts (8 errors) ====
|
||||
==== tests/cases/compiler/privacyGloImportParseErrors.ts (11 errors) ====
|
||||
module m1 {
|
||||
export module m1_M1_public {
|
||||
export class c1 {
|
||||
@@ -72,6 +75,8 @@ tests/cases/compiler/privacyGloImportParseErrors.ts(141,12): error TS2435: Ambie
|
||||
var m1_im2_private_v4_private = m1_im2_private.f1();
|
||||
|
||||
import m1_im3_private = require("m1_M3_public");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'm1_M3_public'.
|
||||
export var m1_im3_private_v1_public = m1_im3_private.c1;
|
||||
@@ -142,6 +147,8 @@ tests/cases/compiler/privacyGloImportParseErrors.ts(141,12): error TS2435: Ambie
|
||||
|
||||
module m5 {
|
||||
import m5_errorImport = require("glo_M2_public");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
import m5_nonerrorImport = glo_M1_public;
|
||||
}
|
||||
}
|
||||
@@ -174,6 +181,8 @@ tests/cases/compiler/privacyGloImportParseErrors.ts(141,12): error TS2435: Ambie
|
||||
module m4 {
|
||||
var a = 10;
|
||||
import m2 = require("use_glo_M1_public");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,6 +1,11 @@
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(59,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(143,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(277,13): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(306,13): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(314,9): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(326,9): error TS1029: 'export' modifier must precede 'declare' modifier.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(328,9): error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(344,9): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(353,9): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(22,27): error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(30,20): error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(59,37): error TS2307: Cannot find external module 'm1_M3_public'.
|
||||
@@ -33,7 +38,7 @@ tests/cases/compiler/privacyImportParseErrors.ts(333,16): error TS2435: Ambient
|
||||
tests/cases/compiler/privacyImportParseErrors.ts(336,12): error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
|
||||
|
||||
==== tests/cases/compiler/privacyImportParseErrors.ts (33 errors) ====
|
||||
==== tests/cases/compiler/privacyImportParseErrors.ts (38 errors) ====
|
||||
export module m1 {
|
||||
export module m1_M1_public {
|
||||
export class c1 {
|
||||
@@ -97,6 +102,8 @@ tests/cases/compiler/privacyImportParseErrors.ts(336,12): error TS2435: Ambient
|
||||
var m1_im2_private_v4_private = m1_im2_private.f1();
|
||||
|
||||
import m1_im3_private = require("m1_M3_public");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'm1_M3_public'.
|
||||
export var m1_im3_private_v1_public = m1_im3_private.c1;
|
||||
@@ -189,6 +196,8 @@ tests/cases/compiler/privacyImportParseErrors.ts(336,12): error TS2435: Ambient
|
||||
var m1_im2_private_v4_private = m1_im2_private.f1();
|
||||
|
||||
import m1_im3_private = require("m2_M3_public");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
~~~~~~~~~~~~~~
|
||||
!!! error TS2307: Cannot find external module 'm2_M3_public'.
|
||||
export var m1_im3_private_v1_public = m1_im3_private.c1;
|
||||
@@ -347,6 +356,8 @@ tests/cases/compiler/privacyImportParseErrors.ts(336,12): error TS2435: Ambient
|
||||
|
||||
module m5 {
|
||||
import m5_errorImport = require("glo_M2_public");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
import m5_nonerrorImport = glo_M1_public;
|
||||
}
|
||||
}
|
||||
@@ -384,6 +395,8 @@ tests/cases/compiler/privacyImportParseErrors.ts(336,12): error TS2435: Ambient
|
||||
|
||||
module m5 {
|
||||
import m5_errorImport = require("glo_M4_private");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
import m5_nonerrorImport = glo_M3_private;
|
||||
}
|
||||
}
|
||||
@@ -420,8 +433,6 @@ tests/cases/compiler/privacyImportParseErrors.ts(336,12): error TS2435: Ambient
|
||||
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
module m2 {
|
||||
declare module "abc" {
|
||||
~~~~~~~
|
||||
!!! error TS1038: A 'declare' modifier cannot be used in an already ambient context.
|
||||
~~~~~
|
||||
!!! error TS2435: Ambient external modules cannot be nested in other modules.
|
||||
}
|
||||
@@ -444,6 +455,8 @@ tests/cases/compiler/privacyImportParseErrors.ts(336,12): error TS2435: Ambient
|
||||
module m4 {
|
||||
var a = 10;
|
||||
import m2 = require("use_glo_M1_public");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
}
|
||||
|
||||
}
|
||||
@@ -453,6 +466,8 @@ tests/cases/compiler/privacyImportParseErrors.ts(336,12): error TS2435: Ambient
|
||||
module m4 {
|
||||
var a = 10;
|
||||
import m2 = require("use_glo_M1_public");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,8 +1,7 @@
|
||||
testGlo.ts(2,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
testGlo.ts(21,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
|
||||
|
||||
==== testGlo.ts (2 errors) ====
|
||||
==== testGlo.ts (1 errors) ====
|
||||
module m2 {
|
||||
export import mExported = require("mExported");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -26,8 +25,6 @@ testGlo.ts(21,5): error TS1147: Import declarations in an internal module cannot
|
||||
}
|
||||
|
||||
import mNonExported = require("mNonExported");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
export var c3 = new mNonExported.mne.class1;
|
||||
export function f3() {
|
||||
return new mNonExported.mne.class1();
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
testGlo.ts(2,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
testGlo.ts(21,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
|
||||
|
||||
==== testGlo.ts (2 errors) ====
|
||||
==== testGlo.ts (1 errors) ====
|
||||
module m2 {
|
||||
export import mExported = require("mExported");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -26,8 +25,6 @@ testGlo.ts(21,5): error TS1147: Import declarations in an internal module cannot
|
||||
}
|
||||
|
||||
import mNonExported = require("mNonExported");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
export var c3 = new mNonExported.mne.class1;
|
||||
export function f3() {
|
||||
return new mNonExported.mne.class1();
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
test.ts(5,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
test.ts(24,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
|
||||
|
||||
==== test.ts (2 errors) ====
|
||||
==== test.ts (1 errors) ====
|
||||
export module m1 {
|
||||
}
|
||||
|
||||
@@ -29,8 +28,6 @@ test.ts(24,5): error TS1147: Import declarations in an internal module cannot re
|
||||
}
|
||||
|
||||
import mNonExported = require("mNonExported");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
export var c3 = new mNonExported.mne.class1;
|
||||
export function f3() {
|
||||
return new mNonExported.mne.class1();
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
test.ts(5,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
test.ts(24,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
|
||||
|
||||
==== test.ts (2 errors) ====
|
||||
==== test.ts (1 errors) ====
|
||||
export module m1 {
|
||||
}
|
||||
|
||||
@@ -29,8 +28,6 @@ test.ts(24,5): error TS1147: Import declarations in an internal module cannot re
|
||||
}
|
||||
|
||||
import mNonExported = require("mNonExported");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
export var c3 = new mNonExported.mne.class1;
|
||||
export function f3() {
|
||||
return new mNonExported.mne.class1();
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
test.ts(2,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
test.ts(42,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
|
||||
|
||||
==== test.ts (2 errors) ====
|
||||
==== test.ts (1 errors) ====
|
||||
export module m2 {
|
||||
export import mExported = require("mExported");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -47,8 +46,6 @@ test.ts(42,5): error TS1147: Import declarations in an internal module cannot re
|
||||
}
|
||||
|
||||
import mNonExported = require("mNonExported");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
module Internal_M3 {
|
||||
export var c3 = new mNonExported.mne.class1;
|
||||
export function f3() {
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
test.ts(2,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
test.ts(42,5): error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
|
||||
|
||||
==== test.ts (2 errors) ====
|
||||
==== test.ts (1 errors) ====
|
||||
export module m2 {
|
||||
export import mExported = require("mExported");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
@@ -47,8 +46,6 @@ test.ts(42,5): error TS1147: Import declarations in an internal module cannot re
|
||||
}
|
||||
|
||||
import mNonExported = require("mNonExported");
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
!!! error TS1147: Import declarations in an internal module cannot reference an external module.
|
||||
module Internal_M3 {
|
||||
export var c3 = new mNonExported.mne.class1;
|
||||
export function f3() {
|
||||
|
||||
Reference in New Issue
Block a user