File:  [parser3project] / parser3 / tests / 291.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Fri Oct 11 20:46:15 2013 UTC (12 years, 8 months ago) by moko
Branches: MAIN
CVS tags: release_3_5_1, release_3_5_0, release_3_4_6, release_3_4_5, release_3_4_4, release_3_4_3, HEAD
test for issue #894 added

@main[]
$b[^b::create[]]
^b.print[]
^b.print(true)

@CLASS
a

@create[]

@void[]
a void $self.CLASS_NAME ^rem{b is OK}

@print[]
a::print:CLASS: $self.CLASS_NAME

@CLASS
b

@BASE
a

@void[]
b void

@print[bUseWorkaround][o]
^a:void[] ^rem{ normal base class call, but wcontext now is get_somebody_entered_some_class() == true }

$o[^a::create[]]

Local a object CLASS: $o.CLASS_NAME

^if($bUseWorkaround){
    $s[^o.print[]]^rem{ another wcontext }
    $s
}{
    ^o.print[]^rem{ same wcontext }
}

E-mail: