-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
@errSetCast
refuses to accept an error union operand
#17343
Labels
Milestone
Comments
andrewrk
added a commit
that referenced
this issue
Oct 1, 2023
The idea here is to avoid code bloat by having only one actual io.Reader implementation, which is type erased, and then implement a GenericReader that preserves type information on top of that as thin glue code. The strategy here is for that glue code to `@errSetCast` the result of the type-erased reader functions, however, while trying to do that I ran into #17343.
This was referenced Oct 1, 2023
Vexu
added a commit
to Vexu/zig
that referenced
this issue
Oct 1, 2023
Vexu
added a commit
to Vexu/zig
that referenced
this issue
Oct 1, 2023
Vexu
added a commit
to Vexu/zig
that referenced
this issue
Oct 1, 2023
andrewrk
added a commit
that referenced
this issue
Oct 1, 2023
The idea here is to avoid code bloat by having only one actual io.Reader implementation, which is type erased, and then implement a GenericReader that preserves type information on top of that as thin glue code. The strategy here is for that glue code to `@errSetCast` the result of the type-erased reader functions, however, while trying to do that I ran into #17343.
andrewrk
added a commit
that referenced
this issue
Oct 3, 2023
The idea here is to avoid code bloat by having only one actual io.Reader implementation, which is type erased, and then implement a GenericReader that preserves type information on top of that as thin glue code. The strategy here is for that glue code to `@errSetCast` the result of the type-erased reader functions, however, while trying to do that I ran into #17343.
andrewrk
added a commit
that referenced
this issue
Oct 3, 2023
The idea here is to avoid code bloat by having only one actual io.Reader implementation, which is type erased, and then implement a GenericReader that preserves type information on top of that as thin glue code. The strategy here is for that glue code to `@errSetCast` the result of the type-erased reader functions, however, while trying to do that I ran into #17343.
andrewrk
added a commit
that referenced
this issue
Oct 3, 2023
The idea here is to avoid code bloat by having only one actual io.Reader implementation, which is type erased, and then implement a GenericReader that preserves type information on top of that as thin glue code. The strategy here is for that glue code to `@errSetCast` the result of the type-erased reader functions, however, while trying to do that I ran into #17343.
krichprollsch
added a commit
to lightpanda-io/zig-js-runtime
that referenced
this issue
Dec 4, 2023
krichprollsch
added a commit
to lightpanda-io/browser
that referenced
this issue
Dec 4, 2023
krichprollsch
added a commit
to lightpanda-io/browser
that referenced
this issue
Dec 4, 2023
krichprollsch
added a commit
to lightpanda-io/zig-js-runtime
that referenced
this issue
Dec 4, 2023
krichprollsch
added a commit
to lightpanda-io/browser
that referenced
this issue
Dec 4, 2023
krichprollsch
added a commit
to lightpanda-io/browser
that referenced
this issue
Dec 5, 2023
TUSF
pushed a commit
to TUSF/zig
that referenced
this issue
May 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Zig Version
0.12.0-dev.695+303181901
Steps to Reproduce and Observed Behavior
Expected Behavior
Test passed.
The text was updated successfully, but these errors were encountered: