version 1.0401
[p5sagit/Function-Parameters.git] / t / foreign / Method-Signatures / syntax_errors.t
CommitLineData
700071de 1#!perl
2use strict;
3use warnings FATAL => 'all';
4
5use Test::More;
6
7use Dir::Self;
8use lib __DIR__ . '/lib';
9
10ok !eval { require Bad };
11#TODO: {
12# local $TODO = "The user should see the actual syntax error";
13 like $@, qr{^Global symbol "\$info" requires explicit package name}m;
14
15# like($@, qr{^PPI failed to find statement for '\$bar'}m,
16# 'Bad syntax generates stack trace');
17#}
18
19done_testing();