mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Accepted more baselines.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
tests/cases/conformance/internalModules/moduleDeclarations/asiPreventsParsingAsNamespace04.ts(3,8): error TS1003: Identifier expected.
|
||||
|
||||
|
||||
==== tests/cases/conformance/internalModules/moduleDeclarations/asiPreventsParsingAsNamespace04.ts (1 errors) ====
|
||||
|
||||
let module = 10;
|
||||
module in {}
|
||||
~~
|
||||
!!! error TS1003: Identifier expected.
|
||||
@@ -0,0 +1,8 @@
|
||||
//// [asiPreventsParsingAsNamespace04.ts]
|
||||
|
||||
let module = 10;
|
||||
module in {}
|
||||
|
||||
//// [asiPreventsParsingAsNamespace04.js]
|
||||
var module = 10;
|
||||
in {};
|
||||
11
tests/baselines/reference/asiPreventsParsingAsNamespace05.js
Normal file
11
tests/baselines/reference/asiPreventsParsingAsNamespace05.js
Normal file
@@ -0,0 +1,11 @@
|
||||
//// [asiPreventsParsingAsNamespace05.ts]
|
||||
|
||||
let namespace = 10;
|
||||
|
||||
namespace
|
||||
a.b.c
|
||||
{
|
||||
}
|
||||
|
||||
//// [asiPreventsParsingAsNamespace05.js]
|
||||
var namespace = 10;
|
||||
@@ -0,0 +1,12 @@
|
||||
=== tests/cases/conformance/internalModules/moduleDeclarations/asiPreventsParsingAsNamespace05.ts ===
|
||||
|
||||
let namespace = 10;
|
||||
>namespace : Symbol(namespace, Decl(asiPreventsParsingAsNamespace05.ts, 1, 3))
|
||||
|
||||
namespace
|
||||
a.b.c
|
||||
>a : Symbol(a, Decl(asiPreventsParsingAsNamespace05.ts, 1, 19))
|
||||
>b : Symbol(b, Decl(asiPreventsParsingAsNamespace05.ts, 4, 2))
|
||||
>c : Symbol(c, Decl(asiPreventsParsingAsNamespace05.ts, 4, 4))
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
=== tests/cases/conformance/internalModules/moduleDeclarations/asiPreventsParsingAsNamespace05.ts ===
|
||||
|
||||
let namespace = 10;
|
||||
>namespace : number
|
||||
>10 : number
|
||||
|
||||
namespace
|
||||
a.b.c
|
||||
>a : any
|
||||
>b : any
|
||||
>c : any
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user