This repository has been archived by the owner on Nov 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue where a shadowed declaration would be emitted instead of th…
…e shadowing one. Fixes #354.
- Loading branch information
1 parent
9edcb4c
commit dc7e88d
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,8 @@ | ||
/* TypeScript file generated from Shadow.re by genType. */ | ||
/* eslint-disable import/first */ | ||
|
||
|
||
// tslint:disable-next-line:no-var-requires | ||
const ShadowBS = require('./Shadow.bs'); | ||
|
||
export const test: (_1:void) => string = ShadowBS.test; |
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,12 @@ | ||
[@genType] | ||
let test = () => 3; | ||
|
||
[@genType] | ||
let test = () => "a"; | ||
|
||
module M = { | ||
[@genType] | ||
let test = () => 3; | ||
|
||
let test = () => "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