File: lambda4.elpi

package info (click to toggle)
elpi 2.0.7-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 50,296 kB
  • sloc: ml: 18,791; makefile: 229; python: 95; sh: 7
file content (17 lines) | stat: -rw-r--r-- 217 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
% Test for the correct parsing of binders with types

pred test1.
test1 :-
  X = (x : bool\ x),
  Y = X tt,
  print Y.

pred test2.
test2 :-
  _ = (x : bool\ x as Z),
  Y = Z tt,
  print Y.

main :-
  test1,
  test2.