Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrevo committed Feb 29, 2024
1 parent 14c4d3c commit add823c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions inputs/passing/const/mutableSucallsOfWrappedExprs.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
//! test_output(4)
//! test_output(3)

export default function main() {
let counter = new Counter();

(counter).inc();
(<Counter> counter).inc();
counter.inc();

// This syntax breaks when jsx is enabled. It's highly unusual and might be removed from
// ValueScript entirely.
// (<Counter> counter).inc();

counter!.inc();
(counter as Counter).inc();

Expand Down

0 comments on commit add823c

Please sign in to comment.