summaryrefslogtreecommitdiffstats
path: root/t/slurpy-syntax-errors.t
blob: 9f8ce3f1f0c215424fc85ae257895fac63879de8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;

use Fun;

{
    eval 'fun ( $foo, @bar, $baz ) { return [] }';
    ok $@, '... got an error';
}

{
    eval 'fun ( $foo, %bar, $baz ) { return {} }';
    ok $@, '... got an error';
}

done_testing;