Undecidable type inference crashes compilation #108
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
Compiling following code
leads to internal compiler error (
{badmatch,undefined}
), howeverworks flawlessly.
The type infer cannot deduce return type of
Oracle.register...
because it is polymorphic and does not depend on the context. This causes oracle type to be specified by an unbound typevar which makes compiler mad. Inferred return type ofOracle.register
is exactlyWe should detect such situations and raise type errors.
Bug copyright (c) @hanssv
Created by: hanssv
This is fixed already.