add type signatures for new builtins.
This commit is contained in:
parent
1f1e68712c
commit
d3344528b3
|
@ -910,27 +910,27 @@ pub fn from_default_function(builtin: DefaultFunction, id_gen: &IdGenerator) ->
|
||||||
}
|
}
|
||||||
DefaultFunction::AndByteString => {
|
DefaultFunction::AndByteString => {
|
||||||
let tipo = Type::function(
|
let tipo = Type::function(
|
||||||
vec![Type::byte_array(), Type::byte_array()],
|
vec![Type::bool(), Type::byte_array(), Type::byte_array()],
|
||||||
Type::byte_array(),
|
Type::byte_array(),
|
||||||
);
|
);
|
||||||
|
|
||||||
(tipo, 2)
|
(tipo, 3)
|
||||||
}
|
}
|
||||||
DefaultFunction::OrByteString => {
|
DefaultFunction::OrByteString => {
|
||||||
let tipo = Type::function(
|
let tipo = Type::function(
|
||||||
vec![Type::byte_array(), Type::byte_array()],
|
vec![Type::bool(), Type::byte_array(), Type::byte_array()],
|
||||||
Type::byte_array(),
|
Type::byte_array(),
|
||||||
);
|
);
|
||||||
|
|
||||||
(tipo, 2)
|
(tipo, 3)
|
||||||
}
|
}
|
||||||
DefaultFunction::XorByteString => {
|
DefaultFunction::XorByteString => {
|
||||||
let tipo = Type::function(
|
let tipo = Type::function(
|
||||||
vec![Type::byte_array(), Type::byte_array()],
|
vec![Type::bool(), Type::byte_array(), Type::byte_array()],
|
||||||
Type::byte_array(),
|
Type::byte_array(),
|
||||||
);
|
);
|
||||||
|
|
||||||
(tipo, 2)
|
(tipo, 3)
|
||||||
}
|
}
|
||||||
DefaultFunction::ComplementByteString => {
|
DefaultFunction::ComplementByteString => {
|
||||||
let tipo = Type::function(vec![Type::byte_array()], Type::byte_array());
|
let tipo = Type::function(vec![Type::byte_array()], Type::byte_array());
|
||||||
|
|
Loading…
Reference in New Issue