shithub: mc

Download patch

ref: 3535b00498a9812b689a8fee281b73d426b92aff
parent: 73158c2bad4d1ce6817abecf22e625039ccb1510
author: Ori Bernstein <[email protected]>
date: Tue Jun 19 19:31:43 EDT 2012

Add test for generics.

--- /dev/null
+++ b/test/generic.myr
@@ -1,0 +1,13 @@
+generic max = {a:@a::tcnum, b::@a::tcnum
+	if (a > b)
+		-> a
+	else
+		-> b
+	;;
+}
+
+const main = {
+	max('a', 'b')
+	-> max(1, 2)
+}
+