Unicode properties: fix L& (the #12319 didn't allow L&,
[p5sagit/p5-mst-13.2.git] / t / op / my_stash.t
CommitLineData
def3634b 1#!./perl
2
3package Foo;
4
036b4402 5BEGIN {
20822f61 6 @INC = '../lib';
036b4402 7}
8
def3634b 9use Test;
10
11plan tests => 7;
12
13use constant MyClass => 'Foo::Bar::Biz::Baz';
14
15{
16 package Foo::Bar::Biz::Baz;
0a0ab32c 17 1;
def3634b 18}
19
20for (qw(Foo Foo:: MyClass __PACKAGE__)) {
21 eval "sub { my $_ \$obj = shift; }";
22 ok ! $@;
23# print $@ if $@;
24}
25
26use constant NoClass => 'Nope::Foo::Bar::Biz::Baz';
27
28for (qw(Nope Nope:: NoClass)) {
29 eval "sub { my $_ \$obj = shift; }";
30 ok $@;
31# print $@ if $@;
32}