Skip to content

Commit c627802

Browse files
committed
Tests
1 parent 85e587e commit c627802

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//// [nestedRedeclarationInES6AMD.ts]
2+
function a() {
3+
{
4+
let status = 1;
5+
status = 2;
6+
}
7+
}
8+
9+
//// [nestedRedeclarationInES6AMD.js]
10+
function a() {
11+
{
12+
let status = 1;
13+
status = 2;
14+
}
15+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
=== tests/cases/compiler/nestedRedeclarationInES6AMD.ts ===
2+
function a() {
3+
>a : Symbol(a, Decl(nestedRedeclarationInES6AMD.ts, 0, 0))
4+
{
5+
let status = 1;
6+
>status : Symbol(status, Decl(nestedRedeclarationInES6AMD.ts, 2, 11))
7+
8+
status = 2;
9+
>status : Symbol(status, Decl(nestedRedeclarationInES6AMD.ts, 2, 11))
10+
}
11+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
=== tests/cases/compiler/nestedRedeclarationInES6AMD.ts ===
2+
function a() {
3+
>a : () => void
4+
{
5+
let status = 1;
6+
>status : number
7+
>1 : number
8+
9+
status = 2;
10+
>status = 2 : number
11+
>status : number
12+
>2 : number
13+
}
14+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// @target: ES6
2+
// @module: AMD
3+
function a() {
4+
{
5+
let status = 1;
6+
status = 2;
7+
}
8+
}

0 commit comments

Comments
 (0)