-
-
Notifications
You must be signed in to change notification settings - Fork 104
support prop:evt #1229
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
Draft
capfredf
wants to merge
16
commits into
racket:master
Choose a base branch
from
capfredf:fix-prop-evt
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
support prop:evt #1229
Changes from 7 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
7287658
wip
capfredf 5482ed7
wip
capfredf 01e0b82
wip
capfredf ee65599
fix
capfredf ecea124
add todo
capfredf df3b700
fix
capfredf b82489b
fix test
capfredf 2194619
fix
capfredf 519e416
fix
capfredf 4658258
fix
capfredf 5552942
refactor
capfredf 8bb4700
revert
capfredf 520a361
rename
capfredf 7c1c96a
wip
capfredf 132a196
rename
capfredf 2766742
wip
capfredf 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,39 @@ | ||
| #lang typed/racket/base | ||
|
|
||
| (define ch ((inst make-channel Number))) | ||
|
|
||
|
|
||
| (struct aaa0 ((evt : (Evtof Number))) | ||
| #:property prop:evt (struct-field-index evt)) | ||
|
|
||
| (thread (lambda () | ||
| (channel-put ch 10))) | ||
|
|
||
| (ann (sync (aaa0 ch)) Number) | ||
|
|
||
|
|
||
| (struct aaa1 ([evt : (Evtof Number)]) | ||
| #:property prop:evt 0) | ||
|
|
||
| (thread (lambda () | ||
| (channel-put ch 10))) | ||
|
|
||
| (ann (sync (aaa1 ch)) Number) | ||
|
|
||
| (struct aaa2 ([evt : (Evtof Number)]) | ||
| #:property prop:evt (lambda ([self : aaa2]) : (Evtof Number) | ||
| (aaa2-evt self))) | ||
|
|
||
| (thread (lambda () | ||
| (channel-put ch 10))) | ||
| (ann (sync (aaa2 ch)) Number) | ||
|
|
||
|
|
||
| (define ch2 ((inst make-channel String))) | ||
| (struct aaa3 () | ||
| #:property prop:evt (ann ch2 (Evtof String))) | ||
|
|
||
| (thread (lambda () | ||
| (channel-put ch2 "10"))) | ||
|
|
||
| (ann (sync (aaa3)) String) |
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.