-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Microsoft/TestUpdatesForResolvedBugs
Updating some tests for resolved bugs
- Loading branch information
Showing
9 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
tests/baselines/reference/classExtendingPrimitive2.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive2.ts (3 errors) ==== | ||
// classes cannot extend primitives | ||
|
||
class C4a extends void {} | ||
~~~~ | ||
!!! Identifier expected. | ||
class C5a extends null { } | ||
~~~~ | ||
!!! Identifier expected. | ||
~ | ||
!!! ';' expected. |
10 changes: 10 additions & 0 deletions
10
tests/baselines/reference/classExtendsEveryObjectType2.errors.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
==== tests/cases/conformance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts (3 errors) ==== | ||
class C2 extends { foo: string; } { } // error | ||
~ | ||
!!! Identifier expected. | ||
|
||
class C6 extends []{ } // error | ||
~ | ||
!!! Identifier expected. | ||
~ | ||
!!! ';' expected. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
//// [duplicateVarAndImport.ts] | ||
// no error since module is not instantiated | ||
|
||
var a; | ||
module M { } | ||
import a = M; | ||
|
||
//// [duplicateVarAndImport.js] | ||
var a; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
==== tests/cases/compiler/duplicateVarAndImport2.ts (1 errors) ==== | ||
// error since module is instantiated | ||
var a; | ||
module M { export var x = 1; } | ||
import a = M; | ||
~~~~~~~~~~~~~ | ||
!!! Import declaration conflicts with local declaration of 'a' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//// [duplicateVarAndImport2.ts] | ||
// error since module is instantiated | ||
var a; | ||
module M { export var x = 1; } | ||
import a = M; | ||
|
||
//// [duplicateVarAndImport2.js] | ||
var a; | ||
var M; | ||
(function (M) { | ||
M.x = 1; | ||
})(M || (M = {})); | ||
var a = M; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
// no error since module is not instantiated | ||
|
||
var a; | ||
module M { } | ||
import a = M; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// error since module is instantiated | ||
var a; | ||
module M { export var x = 1; } | ||
import a = M; |
4 changes: 4 additions & 0 deletions
4
...formance/classes/classDeclarations/classHeritageSpecification/classExtendingPrimitive2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// classes cannot extend primitives | ||
|
||
class C4a extends void {} | ||
class C5a extends null { } |
3 changes: 3 additions & 0 deletions
3
...ance/classes/classDeclarations/classHeritageSpecification/classExtendsEveryObjectType2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class C2 extends { foo: string; } { } // error | ||
|
||
class C6 extends []{ } // error |