summaryrefslogtreecommitdiff
path: root/Test/test0/Types0.bpl
blob: 62385acf5066dd8c1bc47d3da58e9a27ad967397 (plain)
1
2
3
4
5
6
7
8
9
10
// RUN: %boogie -noVerify "%s" > "%t"
// RUN: %diff "%s.expect" "%t"
type T, U;
type V;

function f([U,V]T, int) returns (U);
function g(x: [U,V]T, y: int) returns (z: U);
function h([U,V]T: int, y: int) returns (z: U);  // parse error
function k(T: int, y: int) returns (U: [any]int);
function l(x) returns (int);  // resolve error