Main.hx 446 B

123456789101112131415161718192021222324
  1. class Main {
  2. static function main() {
  3. final f = (_) -> {
  4. throw "This function shouldn't have been called!!";
  5. }
  6. ("hello");
  7. final f = function(_) {
  8. throw "This function shouldn't have been called!!";
  9. }
  10. ("hello");
  11. // named locals
  12. function f(_) {
  13. throw "This function shouldn't have been called!!";
  14. }
  15. ("hello");
  16. final g = function f(_) {
  17. throw "This function shouldn't have been called!!";
  18. }
  19. ("hello");
  20. }
  21. }