mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 08:17:40 +03:00
Add some more hardcoded builtin types
This commit is contained in:
parent
4aa92ea8a1
commit
403d9353f1
@ -547,6 +547,8 @@ define_builtins! {
|
||||
1 FLOAT_FLOATINGPOINT: "FloatingPoint" // Float : Num FloatingPoint
|
||||
2 FLOAT_AT_FLOATINTPOINT: "@FloatingPoint" // the Float.@FloatingPoint private tag
|
||||
3 FLOAT_DIV: "div"
|
||||
4 FLOAT_HIGHEST: "highest"
|
||||
5 FLOAT_LOWEST: "lowest"
|
||||
}
|
||||
4 BOOL: "Bool" => {
|
||||
0 BOOL_BOOL: "Bool" // the Bool.Bool type alias
|
||||
|
18
src/solve.rs
18
src/solve.rs
@ -368,6 +368,24 @@ impl SolvedType {
|
||||
),
|
||||
);
|
||||
|
||||
// highest : Float
|
||||
types.insert(
|
||||
Symbol::FLOAT_HIGHEST,
|
||||
(
|
||||
SolvedType::Apply(Symbol::FLOAT_FLOAT, Vec::new()),
|
||||
Region::zero(),
|
||||
),
|
||||
);
|
||||
|
||||
// lowest : Float
|
||||
types.insert(
|
||||
Symbol::FLOAT_LOWEST,
|
||||
(
|
||||
SolvedType::Apply(Symbol::FLOAT_FLOAT, Vec::new()),
|
||||
Region::zero(),
|
||||
),
|
||||
);
|
||||
|
||||
// List module
|
||||
|
||||
// List elem : [ @List elem ]
|
||||
|
Loading…
Reference in New Issue
Block a user