Open nselvara opened 6 months ago
Can confirm. Here's a shorter MRE
package pkg_test is
procedure foo
generic (type type_t)
parameter (bar: type_t);
procedure baz is new foo generic map (type_t => natural);
end package;
package body pkg_test is
procedure foo
generic (type type_t)
parameter (bar: type_t)
is begin
end;
end package body;
The actual problem is that the information that the foo
procedure implementation is linked to the foo
procedure specification is not generated correctly at the moment (reference : https://github.com/VHDL-LS/rust_hdl/blob/master/vhdl_lang/src/analysis/subprogram.rs#L424).
Hihi, yes the shorter one is more preferable to analyse. 😸
Hi guys, I get this warning when I use generic functions/procedures:
Unused declaration of procedure check_equal_generic[type_t, type_t, STRING, log_level_t, NATURAL, NATURAL, STRING]vhdl ls(unused)
I get the reason behind why it's flagged as not used but I think it should only emit this warning when it hasn't been defined with a generic map.