diff options
| author | Alasdair Armstrong | 2018-12-10 20:39:16 +0000 |
|---|---|---|
| committer | Alasdair Armstrong | 2018-12-10 20:45:05 +0000 |
| commit | 5bc5f5dee8921f8d24260dae54177e00c291fcb1 (patch) | |
| tree | 89bbd7a947e8063bdbaac4abf364f6cccd2c3fdf /src/initial_check.mli | |
| parent | d8f0854ca9d80d3af8d6a4aaec778643eda9421c (diff) | |
Various changes:
* Improve type inference for numeric if statements (if_infer test)
* Correctly handle constraints for existentially quantified constructors (constraint_ctor test)
* Canonicalise all numeric types in function arguments, which
triggers some weird edge cases between parametric polymorphism and
subtyping of numeric arguments
* Because of this eq_int, eq_range, and eq_atom etc become identical
* Avoid duplicating destruct_exist in Env
* Handle some odd subtyping cases better
Diffstat (limited to 'src/initial_check.mli')
| -rw-r--r-- | src/initial_check.mli | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/initial_check.mli b/src/initial_check.mli index 32def316..25187e4c 100644 --- a/src/initial_check.mli +++ b/src/initial_check.mli @@ -91,3 +91,4 @@ val extern_of_string : id -> string -> unit def val val_spec_of_string : id -> string -> unit def val exp_of_string : string -> unit exp +val typ_of_string : string -> typ |
