diff options
author | 2009-08-06 15:23:04 -0400 | |
---|---|---|
committer | 2009-08-06 15:23:04 -0400 | |
commit | c79947821b62c16f0a5a21fb5ec935c1dba00aae (patch) | |
tree | 3ed9eef6d1b6808215e7d7073c5b412839b98204 /tests/filter.ur | |
parent | 38dade494489b5d093cc9bb8f7542de1324f2d55 (diff) |
Fix type class resolution infinite loop, discovered while meeting with Ezra
Diffstat (limited to 'tests/filter.ur')
-rw-r--r-- | tests/filter.ur | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/filter.ur b/tests/filter.ur new file mode 100644 index 00000000..efd326c3 --- /dev/null +++ b/tests/filter.ur @@ -0,0 +1,9 @@ +fun filter [fs ::: {Type}] [ks] (t : sql_table fs ks) (p : sql_exp [T = fs] [] [] bool) + : sql_query [T = fs] [] = + (SELECT * FROM t WHERE {p}) + +table t : { A : int, B : float } + +fun main () = + queryX (filter t (WHERE t.A > 3)) + (fn r => <xml>{[r.T.A]}, {[r.T.B]}</xml>) |