polserver/testsuite/escript/classes/method-new.out
Kevin Eady 8b41711a6d Fix funcref.new(); Correctly error on accessing class name as identifier (#716)
* Fix funcref.new on non-ctors

* Properly error on accessing class name as identifier
2024-10-10 18:06:04 +02:00

12 lines
622 B
Text

error{ errortext = "Invalid argument count: expected 1, got 0" }
<class ClassA>
error{ errortext = "Invalid argument count: expected 1, got 2" }
error{ errortext = "Function is not a constructor" }
error{ errortext = "Function is not a constructor" }
error{ errortext = "Function is not a constructor" }
error{ errortext = "Function is not a constructor" }
error{ errortext = "Function is not a constructor" }
error{ errortext = "Function is not a constructor" }
error{ errortext = "Function is not a constructor" }
error{ errortext = "Function is not a constructor" }
error{ errortext = "Function is not a constructor" }