-
- Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
type SafeFn = proc (): void {. raises: [] } proc ok() {. raises: [] .} = discard proc fail() {. raises: [] .} let f1 : SafeFn = ok let f2 : SafeFn = fail # Error: type mismatch: got (proc ()) but expected 'SafeFn = proc (){.closure.}' # .raise effect is 'can raise any' proc fail() = discardIf fail is implemented before it's used, it works.