We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent acfb79f commit 71c9290Copy full SHA for 71c9290
test/Base_Tests/src/Semantic/Multi_Value_As_Type_Refinement_Spec.enso
@@ -258,6 +258,14 @@ add_specs suite_builder =
258
ab2.a_method . should_equal "A method"
259
ab2.b_method . should_equal "B method"
260
261
+ group_builder.specify "calling both throw_on_warning and catch should not lose the refinements" <|
262
+ ab = make_a_and_b
263
+ r = ab.throw_on_warning Illegal_State . catch Any _->"catched"
264
+ r.is_a A . should_be_true
265
+ r.is_a B . should_be_true
266
+ r.a_method . should_equal "A method"
267
+ r.b_method . should_equal "B method"
268
+
269
main filter=Nothing =
270
suite = Test.build suite_builder->
271
add_specs suite_builder
0 commit comments