mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Fix test
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user