Skip to content

Commit

Permalink
Update examples/error-type-intersection/error_type_intersection.bal
Browse files Browse the repository at this point in the history
Co-authored-by: Maryam Ziyad <[email protected]>
  • Loading branch information
heshanpadmasiri and MaryamZi committed Oct 15, 2024
1 parent 821eb22 commit 4a980f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ public function main() {
// `e2` belongs to `InputError` since its detail type is a subtype of `InputErrorDetail`.
io:println(e2 is InputError);

// `e2` belongs to `DistinctInputError` since its type ID set include the type id of `DistinctInputError`.
// `e2` belongs to `DistinctInputError` since its type ID set includes the type id of `DistinctInputError`.
io:println(e2 is DistinctInputError);
}

0 comments on commit 4a980f1

Please sign in to comment.