Closed craftslab closed 10 months ago
See: https://github.com/AmrDeveloper/GQL/blob/master/crates/gitql-ast/src/expression.rs
Incorrect
fn expr_type(&self, scope: &Environment) -> DataType {
let lhs = self.left.expr_type(scope);
let rhs = self.left.expr_type(scope);
if lhs.is_int() && rhs.is_int() {
return DataType::Integer;
}
DataType::Float
}
Correct
let lhs = self.left.expr_type(scope);
let rhs = self.right.expr_type(scope);
Hello @craftslab,
Thank you for reporting it, i fixed it now
Thank you
Fixed and released on 0.12.0
Describe the bug
Incorrect expr_type for ArithmeticExpression
To Reproduce
Expected behavior
GQL (please complete the following information):
Version 0.11.0
Screenshots