That works nicely! At least on glot.io... https://glot.io/snippets/ezdur9ik70
When I run the exact same code on my machine, I get the following error exit(ATS): unmatched value at run-time: /home/andy/tmp/tmp.dats: 713(line=30, offs=9) -- 725(line=30, offs=21) i.e. the line val Bar(x,y) = p fails. -- You received this message because you are subscribed to the Google Groups "ats-lang-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-users+unsubscr...@googlegroups.com. To post to this group, send email to ats-lang-users@googlegroups.com. Visit this group at https://groups.google.com/group/ats-lang-users. To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/103a938a-7c03-42dd-8c60-102805ad5404%40googlegroups.com.