Skip to content

Commit

Permalink
lib: Re-added workaround for #3355 to option and outcome
Browse files Browse the repository at this point in the history
Did this only in the inheritance call, not the other uses of
`option.this`/`outcome.this`, which seems to be sufficient.
  • Loading branch information
fridis committed Jul 10, 2024
1 parent bc17a65 commit 0a1bc9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/option.fz
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public option(public T type)
: choice T nil,
monad T (option T),
Sequence T,
auto_unwrap T (try option.this)
auto_unwrap T (try (option T)) /* NYI: BUG #3355: auto_unwrap T (try option.this) */
is

# Does this option contain a value of type T?
Expand Down
2 changes: 1 addition & 1 deletion lib/outcome.fz
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
public outcome(public T type) :
choice T error, /* ... NYI: this should be open generic! */
monad T (outcome T),
auto_unwrap T (try outcome.this)
auto_unwrap T (try (outcome T)) /* NYI: BUG #3355: auto_unwrap T (try option.this) */
is

# Does this outcome contain a value of type T?
Expand Down

0 comments on commit 0a1bc9e

Please sign in to comment.