Add type for DoubleSlash

This commit is contained in:
Richard Feldman 2019-10-01 11:35:58 +03:00
parent 4f893ea69f
commit 0218eaa1fd

View file

@ -38,7 +38,7 @@ impl Type {
match op {
Slash => op_type(Type::float(), Type::float(), Type::float()),
// TODO actually, drop this in favor of having the parser use Apply in the AST.
DoubleSlash => op_type(Type::int(), Type::int(), Type::int()),
_ => panic!("TODO types for operator {:?}", op),
}
}