summaryrefslogtreecommitdiff
path: root/Test/test0/Types0.bpl
blob: 4e6e607b1b1d1de20b96623664f59ffb89a7d1ce (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