Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67b3ce8
commit cdd9b76
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...gin-transform-typescript/test/fixtures/enum/enum-merging-inner-references-shadow/input.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,14 @@ | ||
const Cat = 10; | ||
const Dog = 20; | ||
|
||
enum Animals { | ||
Cat = 1 | ||
} | ||
|
||
enum Animals { | ||
Dog = 2 | ||
} | ||
|
||
enum Animals { | ||
CatDog = Cat | Dog | ||
} |
14 changes: 14 additions & 0 deletions
14
...in-transform-typescript/test/fixtures/enum/enum-merging-inner-references-shadow/output.js
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,14 @@ | ||
const Cat = 10; | ||
const Dog = 20; | ||
var Animals = /*#__PURE__*/function (Animals) { | ||
Animals[Animals["Cat"] = 1] = "Cat"; | ||
return Animals; | ||
}(Animals || {}); | ||
Animals = /*#__PURE__*/function (Animals) { | ||
Animals[Animals["Dog"] = 2] = "Dog"; | ||
return Animals; | ||
}(Animals || {}); | ||
Animals = /*#__PURE__*/function (Animals) { | ||
Animals[Animals["CatDog"] = 3] = "CatDog"; | ||
return Animals; | ||
}(Animals || {}); |