diff --git a/crates/aiken-lang/src/tipo/expr.rs b/crates/aiken-lang/src/tipo/expr.rs index f2caea17..7eabeb90 100644 --- a/crates/aiken-lang/src/tipo/expr.rs +++ b/crates/aiken-lang/src/tipo/expr.rs @@ -981,7 +981,7 @@ impl<'a, 'b> ExprTyper<'a, 'b> { .push(Warning::SingleConstructorExpect { location: Span { start: location.start, - end: kind.location_offset(), + end: location.start + kind.location_offset(), }, pattern_location: dbg!(untyped_pattern.location()), value_location: dbg!(untyped_value.location()),