chipsalliance / verible

Verible is a suite of SystemVerilog developer tools, including a parser, style-linter, formatter and language server
https://chipsalliance.github.io/verible/
Other
1.25k stars 195 forks source link

Return type using `type(...)` throws syntax error #2157

Open goekce opened 2 months ago

goekce commented 2 months ago

Describe the bug

Return type using type(...) throws syntax error.

To Reproduce

module m;
  logic x;
  function type(x) f();
  endfunction
endmodule

version: 3624 d256d779

Actual behavior:

Throws:

syntax error at "type"

Expected behavior

No error. Verilator linter and xvlog accept this syntax.