blob: 2bbeece3b0a7e7a755a0b87b292e9afff9128cb3 [file] [log] [blame]
/*
:name: illegal_implements_parameter
:description: implementing parameter that resolves to an interface class is not allowed
:should_fail: 1
:tags: 8.26.4
*/
module class_tb ();
interface class ihello;
typedef int int_t;
pure virtual function void hello(int_t val);
endclass
class Hello #(type T = ihello) implements T;
virtual function void hello(ihello::int_t val);
$display("hello world %d", val);
endfunction
endclass
Hello obj;
initial begin
obj = new;
obj.hello();
end
endmodule