redtt icon indicating copy to clipboard operation
redtt copied to clipboard

projecting from opaque pair

Open ecavallo opened this issue 6 years ago • 0 comments

data unit where
| triv

opaque
let t : (A : type) × A = (unit, triv)

let a = t .snd

raises Failure("popl: empty"). Writing

let a : t .fst = t .snd

works fine.

ecavallo avatar Sep 12 '18 16:09 ecavallo