Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 1834

Record in list decomposed in a single step needs type hint, is this a bug?

$
0
0

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?


Viewing all articles
Browse latest Browse all 1834

Trending Articles