Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radeusgd committed Jan 28, 2025
1 parent 82e4f3e commit 9470816
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ add_specs suite_builder =

Test.expect_panic No_Such_Method (b2.a_method)
b2.b_method.should_equal "B method"
Test.expect_panic Type_Error (b2:A)
# We can still explicitly cast back to A
(b2:A).a_method.should_equal "A method"

group_builder.specify "unpacking an intersection type via pattern matching" <|
ab = make_a_and_b
case ab of
Expand Down

0 comments on commit 9470816

Please # to comment.