-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve the value of const initializers before type-checking (#149)
* fix: resolve the value of const initializers before type-checking * chore: cleanup
- Loading branch information
1 parent
0831ec6
commit 205716a
Showing
4 changed files
with
149 additions
and
38 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
9 changes: 9 additions & 0 deletions
9
src/tests/unit/fixtures/thrift-server/complex_const.solution.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,9 @@ | ||
export const WHAT: number = 32; | ||
export const VALUE: number = 32; | ||
export const VALUE_LIST: Array<number> = [32]; | ||
export const FALSE_CONST: boolean = false; | ||
export const INT_64: thrift.Int64 = thrift.Int64.fromDecimalString("64"); | ||
export const SET_CONST: Set<string> = new Set(["hello", "world", "foo", "bar"]); | ||
export const MAP_CONST: Map<string, string> = new Map([["hello", "world"], ["foo", "bar"]]); | ||
export const VALUE_MAP: Map<number, string> = new Map([[32, "world"], [5, "bar"]]); | ||
export const LIST_CONST: Array<string> = ["hello", "world", "foo", "bar"]; |
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
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