-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support type annotations on global variables #43671
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
f819538
add typing to global bindings
miguelraz ee478df
support type annotations on global variables
simeonschaub 2846e34
rename to `_set_binding_type!`
simeonschaub b6e4587
try to fix analyzegc failure
simeonschaub a3e6c98
always add conversion step for globals
simeonschaub bc38f26
try to fix tests
simeonschaub 1791c3c
fix inference test
simeonschaub c4161fd
fix analyzegc failures
simeonschaub 28c8cba
allow `Core._get_binding_type` to be elided
simeonschaub 646e2ab
clean up `julia-syntax.scm`
simeonschaub e0e0364
Merge remote-tracking branch 'origin/master' into sds/typedglobals
simeonschaub b28d542
add docs
simeonschaub b208fbf
add NEWS entry
simeonschaub d7e92f1
remove leading underscores in names
simeonschaub ff22fc0
fix docs
simeonschaub e93e694
just remove ref to `<:`
simeonschaub 3656ddf
Merge remote-tracking branch 'origin/master' into sds/typedglobals
simeonschaub 1d54432
try to make `ty` field atomic
simeonschaub ce66bbb
(de)serialize type field correctly
simeonschaub f2d1b48
Merge remote-tracking branch 'origin/master' into sds/typedglobals
simeonschaub 931b7ba
fix serialization
simeonschaub e04c6be
address review comments
simeonschaub 346220a
fix test, add test for different owner
simeonschaub 8989e6e
try to fix distributed tests
simeonschaub de692a7
fix whitespace snafu
simeonschaub b36f3e2
Merge remote-tracking branch 'origin/master' into sds/typedglobals
simeonschaub edfadd3
refactor lowering a bit, fix unnecessary ssavalue
simeonschaub 38d1b06
disallow type annotations in local scope
simeonschaub 1504a97
Merge remote-tracking branch 'origin/master' into sds/typedglobals
simeonschaub 160ee63
use nothing instead of NULL
simeonschaub a334a9b
address Jeff's review comment
simeonschaub efdb986
fix doctests
simeonschaub 645f155
better error message in `head-to-text`
simeonschaub b442636
fix elision of `get_binding_type`
simeonschaub 592c957
Merge remote-tracking branch 'origin/master' into sds/typedglobals
simeonschaub 59bc7c0
fix tests
simeonschaub 29afe48
update test for #33243
simeonschaub d265016
make test more robust
simeonschaub 2183d33
use binding type in codegen?
simeonschaub File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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
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
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
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the correct thing to do? Not very confident about this though...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes this should work.