Skip to content

Commit

Permalink
adjust test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingwl committed Apr 30, 2020
1 parent a5f3d15 commit 7e5091d
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 28 deletions.
4 changes: 4 additions & 0 deletions tests/baselines/reference/staticAsIdentifier.errors.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ tests/cases/compiler/staticAsIdentifier.ts(2,12): error TS1030: 'static' modifie
~~~~~~
!!! error TS1030: 'static' modifier already seen.
[x: string]: string;
}

class CC {
static static;
}
9 changes: 9 additions & 0 deletions tests/baselines/reference/staticAsIdentifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
class C {
static static
[x: string]: string;
}

class CC {
static static;
}

//// [staticAsIdentifier.js]
Expand All @@ -10,3 +14,8 @@ var C = /** @class */ (function () {
}
return C;
}());
var CC = /** @class */ (function () {
function CC() {
}
return CC;
}());
7 changes: 7 additions & 0 deletions tests/baselines/reference/staticAsIdentifier.symbols
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ class C {
[x: string]: string;
>x : Symbol(x, Decl(staticAsIdentifier.ts, 2, 5))
}

class CC {
>CC : Symbol(CC, Decl(staticAsIdentifier.ts, 3, 1))

static static;
>static : Symbol(CC.static, Decl(staticAsIdentifier.ts, 5, 10))
}
7 changes: 7 additions & 0 deletions tests/baselines/reference/staticAsIdentifier.types
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,10 @@ class C {
[x: string]: string;
>x : string
}

class CC {
>CC : CC

static static;
>static : any
}
11 changes: 0 additions & 11 deletions tests/baselines/reference/staticIndexer.js

This file was deleted.

7 changes: 0 additions & 7 deletions tests/baselines/reference/staticIndexer.symbols

This file was deleted.

7 changes: 0 additions & 7 deletions tests/baselines/reference/staticIndexer.types

This file was deleted.

4 changes: 4 additions & 0 deletions tests/cases/compiler/staticAsIdentifier.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
class C {
static static
[x: string]: string;
}

class CC {
static static;
}
3 changes: 0 additions & 3 deletions tests/cases/compiler/staticIndexer.ts

This file was deleted.

0 comments on commit 7e5091d

Please sign in to comment.