Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
goekce opened this issue Apr 12, 2024 · 0 comments
Open

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

goekce opened this issue Apr 12, 2024 · 0 comments
Labels
rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017).

Comments

@goekce
Copy link

goekce commented Apr 12, 2024

Describe the bug

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

To Reproduce

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

version: 3624 d256d77

Actual behavior:

Throws:

syntax error at "type"

Expected behavior

No error. Verilator linter and xvlog accept this syntax.

@goekce goekce added the rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017). label Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rejects-valid syntax If the parser wrongly rejects syntactically valid code (according to SV-2017).
Projects
None yet
Development

No branches or pull requests

1 participant