Out of curiosity, how does this explain the difference of the record type resolution in and out of the closure?
// breaks
let {a, b} = Definition.getRecord()
let doIt = () => {
// compiles
let {a, b} = Definition.getRecord()
}
Is this an independent issue, or somehow related?