mirror of
https://github.com/zachjs/sv2v.git
synced 2026-09-03 07:33:31 +02:00
fix typeof incorrectly propagating implicit types
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
module top;
|
||||
typedef logic [1:0] T;
|
||||
function automatic [1:0] flip;
|
||||
input [1:0] inp;
|
||||
flip = ~inp;
|
||||
endfunction
|
||||
initial begin
|
||||
case (flip(2'b00)) inside
|
||||
2'b11: $display("good");
|
||||
default: $display("default");
|
||||
endcase
|
||||
case (T'(flip(2'b00))) inside
|
||||
2'b11: $display("good");
|
||||
default: $display("default");
|
||||
endcase
|
||||
end
|
||||
endmodule
|
||||
@@ -0,0 +1,6 @@
|
||||
module top;
|
||||
initial begin
|
||||
$display("good");
|
||||
$display("good");
|
||||
end
|
||||
endmodule
|
||||
Reference in New Issue
Block a user