From d20aee51fd5633f1685b4bf038f21be4118fbe03 Mon Sep 17 00:00:00 2001 From: Mark Pearce Date: Mon, 6 Jan 2025 10:26:11 -0400 Subject: [PATCH] Fixed issue for callfuncs returning voidtype --- .../validation/ScopeValidator.spec.ts | 91 +++++++++++++++++++ src/util.ts | 4 + 2 files changed, 95 insertions(+) diff --git a/src/bscPlugin/validation/ScopeValidator.spec.ts b/src/bscPlugin/validation/ScopeValidator.spec.ts index d15ed9f51..c206a3466 100644 --- a/src/bscPlugin/validation/ScopeValidator.spec.ts +++ b/src/bscPlugin/validation/ScopeValidator.spec.ts @@ -4856,6 +4856,97 @@ describe('ScopeValidator', () => { DiagnosticMessages.argumentTypeMismatch('string', 'integer').message ]); }); + + it('respects return value of as callfunc functions', () => { + program.setFile('components/Widget.xml', trim` + + +