FStar icon indicating copy to clipboard operation
FStar copied to clipboard

print_in_place prints a dependent pair type incorrectly

Open nikswamy opened this issue 3 years ago • 0 comments

This unusual way of writing a dependent pair:

module TT
let test (a: Type) (b: (a → Type)) (y: (v: a) & b v) = ()

is accepted by F*.

But, if you run fstar --print_in_place TT.fst it produces

module TT
let test (a: Type) (b: (a → Type)) (y: v: a & b v) = ()

Which is a syntax error

nikswamy avatar May 11 '22 21:05 nikswamy