# New Ticket Created by  Patrick R. Michaud 
# Please include the string:  [perl #40834]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=40834 >


If a METHOD is defined in a *.pmc file, that METHOD is not
automatically inherited by PIR-based subclasses.

    $ cat zzz.pir
    .sub main :main
        $P0 = new 'String'
        $P0 = 'Hello'
        $P0.'replace'('e', 'a')
        say $P0
    
        $P99 = subclass 'String', 'Foo'
    
        $P1 = new 'Foo'
        $P1 = 'Hello'
        $P1.'replace'('e', 'a')
        say $P1
    
    .end
    $ ./parrot zzz.pir
    Hallo
    Segmentation fault
    $                                                                           
  
Pm

Reply via email to