Skip to content

Commit f79d24d

Browse files
committed
[FIX] server: do not evaluate call arguments for properties for now
1 parent 701140d commit f79d24d

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
@@ -1276,7 +1276,7 @@ impl Evaluation {
12761276
}
12771277

12781278
fn validate_call_arguments(session: &mut SessionInfo, function: &FunctionSymbol, expr_call: &ExprCall, on_object: Weak<RefCell<Symbol>>, from_module: Option<Rc<RefCell<Symbol>>>, is_on_instance: bool) -> Vec<Diagnostic> {
1279-
if function.is_overloaded() {
1279+
if function.is_overloaded() || function.is_property {
12801280
return vec![];
12811281
}
12821282
let mut diagnostics = vec![];

0 commit comments

Comments
 (0)