Skip to content

Commit

Permalink
Remove auto-signature from TestML
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet authored and ingy@ingy.net committed May 31, 2013
1 parent ee8cbbc commit 6fa80f4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/TestML/Runtime.pm
Expand Up @@ -142,7 +142,6 @@ sub run_call {
my $name = $call->name;
my $callable =
$self->function->getvar($name) ||
$self->get_point($name) ||
$self->lookup_callable($name) ||
die "Can't locate '$name' callable";
if ($callable->isa('TestML::Object')) {
Expand Down
3 changes: 3 additions & 0 deletions t/ast/function.tml
Expand Up @@ -126,6 +126,9 @@ statements:
- !!perl/hash:TestML::Assignment
name: test2
expr: !!perl/hash:TestML::Function
signature:
- color
- thing
statements:
- !!perl/hash:TestML::Statement
expr: !!perl/hash:TestML::Call
Expand Down
3 changes: 1 addition & 2 deletions t/testml/function.tml
Expand Up @@ -22,8 +22,7 @@ Label = '$BlockLabel'

test1(*fruit, *color, *thing)

# XXX aocole suggests yanking the auto-sig feature.
test2 = {
test2 = (color, thing) {
thing ~~ color
}

Expand Down

0 comments on commit 6fa80f4

Please sign in to comment.