Skip to content

Instantly share code, notes, and snippets.

@firesofmay
Created October 29, 2013 19:10
Show Gist options
  • Save firesofmay/7220764 to your computer and use it in GitHub Desktop.
Save firesofmay/7220764 to your computer and use it in GitHub Desktop.
Test case for week3 challenge problem.
val Q13_same_con_in_2_datatypes = typecheck_patterns ([("A", "Dt1", IntT),
("A", "Dt2", IntT)],
[TupleP [ConstructorP ("A", ConstP 20)],
TupleP [ConstructorP ("A", ConstP 10)]]);
(*val Q13_same_con_in_2_datatypes = SOME (TupleT [Datatype "Dt1"]) : typ option*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment