summaryrefslogtreecommitdiff
path: root/op.c
diff options
context:
space:
mode:
authorVincent Pit <perl@profvince.com>2009-05-09 14:19:19 +0200
committerVincent Pit <perl@profvince.com>2009-05-11 19:07:05 +0200
commitd5e98372e6efc414e818f1ed2d33156eb6ca6200 (patch)
tree3a111d6bfec225e3cdb5ffc02b8989fea5f28523 /op.c
parent4477f4efa618ad1dc98479d6c1631bb62963bc70 (diff)
downloadperl-d5e98372e6efc414e818f1ed2d33156eb6ca6200.tar.gz
Allow typed arrays and hashes
Diffstat (limited to 'op.c')
-rw-r--r--op.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/op.c b/op.c
index be98c3f041..63530b3123 100644
--- a/op.c
+++ b/op.c
@@ -399,14 +399,6 @@ Perl_allocmy(pTHX_ const char *const name)
/* check for duplicate declaration */
pad_check_dup(name, is_our, (PL_curstash ? PL_curstash : PL_defstash));
- if (PL_parser->in_my_stash && *name != '$') {
- yyerror(Perl_form(aTHX_
- "Can't declare class for non-scalar %s in \"%s\"",
- name,
- is_our ? "our"
- : PL_parser->in_my == KEY_state ? "state" : "my"));
- }
-
/* allocate a spare slot and store the name in that slot */
off = pad_add_name(name,