1%Warning-CASTCONST: t/t_castdyn_castconst_bad.v:20:11: $cast will always return one as 'int' is always castable from 'logic[31:0]'
2                                                     : ... In instance t
3                                                     : ... Suggest static cast
4   20 |       i = $cast(v, 1);
5      |           ^~~~~
6                    ... For warning description see https://verilator.org/warn/CASTCONST?v=latest
7                    ... Use "/* verilator lint_off CASTCONST */" and lint_on around source to disable this message.
8%Warning-CASTCONST: t/t_castdyn_castconst_bad.v:21:11: $cast will always return one as 'CLASSREFDTYPE 'Base'' is always castable from 'CLASSREFDTYPE 'Base''
9                                                     : ... In instance t
10                                                     : ... Suggest static cast
11   21 |       i = $cast(b, b);
12      |           ^~~~~
13%Warning-CASTCONST: t/t_castdyn_castconst_bad.v:22:11: $cast will always return zero as 'CLASSREFDTYPE 'Base'' is not castable from 'CLASSREFDTYPE 'Other''
14                                                     : ... In instance t
15   22 |       i = $cast(b, o);
16      |           ^~~~~
17%Error: Exiting due to
18