mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
25 lines
442 B
Text
25 lines
442 B
Text
// Test that scope and methods are insensitive
|
|
|
|
class FOO()
|
|
var callCount := 0;
|
|
function foo( unused this )
|
|
Print( callCount++ );
|
|
endfunction
|
|
endclass
|
|
|
|
class bar( foo )
|
|
function BAR( this, barParam )
|
|
SUPER();
|
|
print( BARPARAM );
|
|
endfunction
|
|
endclass
|
|
|
|
class BAZ( foO, bAR )
|
|
function BAz( THIS )
|
|
SupER( "bar param from super" );
|
|
endfunction
|
|
endclass
|
|
|
|
foo::FOO();
|
|
BAR::bar( "bar param from ctor call" );
|
|
BaZ::bAZ();
|