blob: a30f9b0c60b237cfa4613e382a0c952f84f290bd [file] [log] [blame]
/*
:name: scope_resolution
:description: access static method using scope resolution operator
:should_fail: 0
:tags: 8.23
*/
module class_tb ();
class test_cls;
static int id = 0;
static function int next_id();
next_id = ++id;
endfunction
endclass
initial begin
$display(test_cls::next_id());
$display(test_cls::next_id());
end
endmodule