Sign in
foss-fpga-tools
/
third_party
/
verible
/
7ef4fe45b18f3999c48af7db0b868d6fca18f025
/
.
/
verilog
/
tools
/
lint
/
testdata
/
shadow_parameter.sv
blob: a5ce1e82667dd32a111c7e2620f80fdd5a147fd8 [
file
] [
log
] [
blame
]
class
jumbo_packet
;
// the shadowed instance
const
int
max_size
=
9
*
1024
;
byte
payload
[];
function
new
(
int
size
);
payload
=
new
[
size
>
max_size
?
max_size
:
size
];
int
jumbo_packet
=
0
;
// shadowing the class name, error
endfunction
endclass