Skip to content
Browse files

[t/runtime.t] added failing tests

For some reason, this doesn't work yet. It dies with the error "Trying
to invoke a non-closure", for no reason immediately obvious to me.
  • Loading branch information...
1 parent 06ef258 commit d9f4e1b022f5580dd92ea67c853dc70f059331fc @masak committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 t/runtime.t
View
2 t/runtime.t
@@ -53,6 +53,8 @@ my @tests =
'{ say 42 }()', "42\n", 'call a block',
'sub foo { say 42 }; foo()', "42\n", 'call a named sub',
'foo(); sub foo { say 5 }', "5\n", 'call before declaration',
+ 'sub foo { bar; sub bar { say 42 } }; foo',
+ "42\n", 'nested sub call',
;
for @tests -> $program, $expected, $message {

0 comments on commit d9f4e1b

Please sign in to comment.
Something went wrong with that request. Please try again.