grain icon indicating copy to clipboard operation
grain copied to clipboard

Improve unsound type warning

Open ospencer opened this issue 2 years ago • 0 comments

This code:

provide let test = () => {
  return false
  return false
}

gives the hilarious warning this statement never returns (or has an unsound type)..

Clearly the statement return false returns. We should improve the error message to explain what's going on.

ospencer avatar Jan 29 '24 16:01 ospencer