implement 'runtime' keyword attribute
[p5sagit/Function-Parameters.git] / t / method_cache.t
CommitLineData
42e595b0 1#!perl
2use warnings FATAL => 'all';
3no warnings qw(once redefine);
4use strict;
5
6use Test::More tests => 2;
7
8use Function::Parameters {
9 method => { defaults => 'method_strict', runtime => 1 },
10};
11
12# See commit 978a498e17ec54b6f1fc65f3375a62a68f321f99 in perl
13
14method Y::b() { 'b' }
15*X::b = *Y::b;
16@Z::ISA = 'X';
17is +Z->b, 'b';
18
19method Y::b() { 'c' }
20is +Z->b, 'c';