Skip to content

Commit 1b7714f

Browse files
committed
[IMP] Raise OLS03006 on Tuples
1 parent 5586b45 commit 1b7714f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/core/evaluation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,7 @@ impl Evaluation {
15121512

15131513
fn validate_domain(session: &mut SessionInfo, on_object: Weak<RefCell<Symbol>>, from_module: Option<Rc<RefCell<Symbol>>>, value: &Expr) -> Vec<Diagnostic> {
15141514
let mut diagnostics = vec![];
1515-
if value.is_literal_expr() {
1515+
if value.is_literal_expr() || matches!(value, Expr::Tuple(_)) {
15161516
if let Some(diagnostic) = create_diagnostic(session, DiagnosticCode::OLS03006, &[]) {
15171517
diagnostics.push(Diagnostic {
15181518
range: Range::new(Position::new(value.range().start().to_u32(), 0), Position::new(value.range().end().to_u32(), 0)),

0 commit comments

Comments
 (0)