Typechecker does not warn about enforced monomorphism of local definitions #112
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: radrow
Following code does not typecheck:
because local functions are not allowed to be polymorphic and
'aget implicitly assigned toboolwhich causesf(1)to be badly typed. This behavior is very misleading, because the actual type off(bool => bool) does not match explicitly given type signature.We should detect such situations and rise meaningful errors.
Created by: radrow
moved out