Skip to content

Commit

Permalink
Add missing line in example program.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpressey committed Feb 23, 2022
1 parent e8bcd32 commit d5c70bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions eg/typecase.castile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ fun foo(a, b: integer|string) {
r
}
main = fun() {
a = 0;
a = foo(a, 333 as integer|string);
a = foo(a, "hiya" as integer|string);
a /* should output 337 */
Expand Down

0 comments on commit d5c70bc

Please sign in to comment.