- Timestamp:
- 11/06/08 12:31:35 (2 months ago)
- Files:
-
- 1 modified
-
t/spec/S12-class/inheritance.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/spec/S12-class/inheritance.t
r22897 r22898 38 38 is($foo_bar.fud(), 'Foo::Bar::fud', '... sanity check on uninherited method'); 39 39 40 #?rakudo skip 'stringification of objects' 40 41 41 is($foo_bar.getme, $foo_bar, 'can call inherited methods'); 42 42 is($foo_bar.getme.baz, "Foo::Bar::baz", 'chained method dispatch on altered method'); … … 73 73 ok Foo::Bar.HOW.does(Foo::BAR, ::CLASS), "subclass.HOW.does(CLASS) is true"; 74 74 75 76 #?rakudo skip 'indirect method call syntax'77 75 { 78 76 my $test = '$obj.$meth is canonical (audreyt says)'; … … 81 79 } 82 80 class Child is Abc { } 83 is( eval('my $meth = "foo"; my $obj= Child.new; $obj. $meth()'), 'found', $test);81 is( eval('my $meth = "foo"; my $obj= Child.new; $obj."$meth"()'), 'found', $test); 84 82 } 85 83
