Skip to content

Commit

Permalink
🚧 WIP
Browse files Browse the repository at this point in the history
semver: chore
  • Loading branch information
Somfic committed Nov 1, 2024
1 parent 4f4db62 commit bd3c1e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/passer/typing/mod.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use super::{Passer, PasserResult};
use crate::parser::{
ast::{Expression, ExpressionValue, Statement, StatementValue, Symbol, Type},
ast::{Expression, ExpressionValue, Spannable, Statement, StatementValue, Symbol, Type, TypeValue},
expression,
};
use miette::{Error, LabeledSpan, Report, Result};
Expand Down Expand Up @@ -50,7 +50,7 @@ impl Typing for Expression<'_> {
fn possible_types(&self) -> Vec<(Type, miette::SourceSpan)> {
match &self.value {
ExpressionValue::Primitive(primitive) => vec![match primitive {
crate::parser::ast::Primitive::Integer(_) => (Type::Integer, self.span),
crate::parser::ast::Primitive::Integer(_) => Type::at(self.span, TypeValue::Integer),
crate::parser::ast::Primitive::Decimal(_) => (Type::Decimal, self.span),
crate::parser::ast::Primitive::String(_) => (Type::String, self.span),
crate::parser::ast::Primitive::Identifier(value) => {
Expand Down

0 comments on commit bd3c1e1

Please sign in to comment.