diff options
| author | Alasdair Armstrong | 2017-06-28 17:58:40 +0100 |
|---|---|---|
| committer | Alasdair Armstrong | 2017-06-28 17:58:40 +0100 |
| commit | 32a621d568081cc7f60102d35d84bece9bbd01c5 (patch) | |
| tree | ee641aabcaf42d1cc10dd2dc1838deb8bc21d3a6 /src/test/main.bin | |
| parent | 058be7385881ce5a530f76fa48c867d04dca42cf (diff) | |
Improvements to implicit type casting
Added a new feature for implicit casts - now allowable implicit casts
can be specified by the user via a valspec such as
val cast forall Type 'a, Type 'b. 'a -> 'b effect pure cast_anything
with a new AST constructor to represent this as VS_cast_spec. This
constructor is removed and replaced with the standard val spec by the
old typechecker for backwards compatability, so it's only used by the
new typechecker, and won't appear in the ast once it reaches the
backends.
Also added Num as a synonym for the Nat kind in the parser, via the
confusingly named NatNum token (Num by itself was already taken for a
numeric constant).
Diffstat (limited to 'src/test/main.bin')
0 files changed, 0 insertions, 0 deletions
