From add823ca556f4e2732b73454b24431889c085ded Mon Sep 17 00:00:00 2001 From: Andrew Morris Date: Fri, 1 Mar 2024 10:01:03 +1100 Subject: [PATCH] Fix test --- inputs/passing/const/mutableSucallsOfWrappedExprs.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/inputs/passing/const/mutableSucallsOfWrappedExprs.ts b/inputs/passing/const/mutableSucallsOfWrappedExprs.ts index 5d472a67..51ce82cf 100644 --- a/inputs/passing/const/mutableSucallsOfWrappedExprs.ts +++ b/inputs/passing/const/mutableSucallsOfWrappedExprs.ts @@ -1,10 +1,14 @@ -//! test_output(4) +//! test_output(3) export default function main() { let counter = new Counter(); - (counter).inc(); - ( counter).inc(); + counter.inc(); + + // This syntax breaks when jsx is enabled. It's highly unusual and might be removed from + // ValueScript entirely. + // ( counter).inc(); + counter!.inc(); (counter as Counter).inc();