forked from microsoft/TypeScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix devtools test * Add small test case mimicing the issue from the user test
- Loading branch information
Showing
5 changed files
with
89 additions
and
2 deletions.
There are no files selected for viewing
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
28 changes: 28 additions & 0 deletions
28
tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder.symbols
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,28 @@ | ||
=== tests/cases/conformance/salsa/index.js === | ||
Common.Item = class I {} | ||
>Common : Symbol(Common, Decl(index.js, 0, 0), Decl(roots.js, 0, 3)) | ||
>I : Symbol(I, Decl(index.js, 0, 13)) | ||
|
||
Common.Object = class extends Common.Item {} | ||
>Common : Symbol(Common, Decl(index.js, 0, 0), Decl(roots.js, 0, 3)) | ||
>Common.Item : Symbol(Common.Item, Decl(index.js, 0, 0)) | ||
>Common : Symbol(Common, Decl(index.js, 0, 0), Decl(roots.js, 0, 3)) | ||
>Item : Symbol(Common.Item, Decl(index.js, 0, 0)) | ||
|
||
Workspace.Object = class extends Common.Object {} | ||
>Workspace : Symbol(Workspace, Decl(index.js, 1, 44), Decl(roots.js, 1, 3)) | ||
>Common.Object : Symbol(Common.Object, Decl(index.js, 0, 24)) | ||
>Common : Symbol(Common, Decl(index.js, 0, 0), Decl(roots.js, 0, 3)) | ||
>Object : Symbol(Common.Object, Decl(index.js, 0, 24)) | ||
|
||
/** @type {Workspace.Object} */ | ||
var am; | ||
>am : Symbol(am, Decl(index.js, 6, 3)) | ||
|
||
=== tests/cases/conformance/salsa/roots.js === | ||
var Common = {}; | ||
>Common : Symbol(Common, Decl(index.js, 0, 0), Decl(roots.js, 0, 3)) | ||
|
||
var Workspace = {}; | ||
>Workspace : Symbol(Workspace, Decl(index.js, 1, 44), Decl(roots.js, 1, 3)) | ||
|
42 changes: 42 additions & 0 deletions
42
tests/baselines/reference/typeFromPropertyAssignmentOutOfOrder.types
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,42 @@ | ||
=== tests/cases/conformance/salsa/index.js === | ||
Common.Item = class I {} | ||
>Common.Item = class I {} : typeof I | ||
>Common.Item : any | ||
>Common : any | ||
>Item : any | ||
>class I {} : typeof I | ||
>I : typeof I | ||
|
||
Common.Object = class extends Common.Item {} | ||
>Common.Object = class extends Common.Item {} : typeof (Anonymous class) | ||
>Common.Object : any | ||
>Common : any | ||
>Object : any | ||
>class extends Common.Item {} : typeof (Anonymous class) | ||
>Common.Item : any | ||
>Common : any | ||
>Item : any | ||
|
||
Workspace.Object = class extends Common.Object {} | ||
>Workspace.Object = class extends Common.Object {} : typeof (Anonymous class) | ||
>Workspace.Object : any | ||
>Workspace : any | ||
>Object : any | ||
>class extends Common.Object {} : typeof (Anonymous class) | ||
>Common.Object : any | ||
>Common : any | ||
>Object : any | ||
|
||
/** @type {Workspace.Object} */ | ||
var am; | ||
>am : (Anonymous class) | ||
|
||
=== tests/cases/conformance/salsa/roots.js === | ||
var Common = {}; | ||
>Common : any | ||
>{} : { [x: string]: any; } | ||
|
||
var Workspace = {}; | ||
>Workspace : any | ||
>{} : { [x: string]: any; } | ||
|
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
16 changes: 16 additions & 0 deletions
16
tests/cases/conformance/salsa/typeFromPropertyAssignmentOutOfOrder.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,16 @@ | ||
// @noEmit: true | ||
// @allowJs: true | ||
// @checkJs: true | ||
// @target: es3 | ||
// @filename: index.js | ||
Common.Item = class I {} | ||
Common.Object = class extends Common.Item {} | ||
|
||
Workspace.Object = class extends Common.Object {} | ||
|
||
/** @type {Workspace.Object} */ | ||
var am; | ||
|
||
// @filename: roots.js | ||
var Common = {}; | ||
var Workspace = {}; |