We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2be0696 commit ab3f74cCopy full SHA for ab3f74c
regression/verilog/class/new1.desc
@@ -1,8 +1,7 @@
1
-KNOWNBUG
+CORE
2
new1.sv
3
4
-^EXIT=0$
+^EXIT=10$
5
^SIGNAL=0$
6
--
7
8
-The class is not yet recognized as a type.
src/verilog/verilog_typecheck_expr.cpp
@@ -269,6 +269,15 @@ void verilog_typecheck_exprt::assignment_conversion(
269
}
270
271
272
+ if(rhs.type().id() == ID_verilog_new)
273
+ {
274
+ if(lhs_type.id() == ID_verilog_class_type)
275
276
+ rhs = typecast_exprt{rhs, lhs_type};
277
+ return;
278
+ }
279
280
+
281
// "The size of the left-hand side of an assignment forms
282
// the context for the right-hand expression."
283
0 commit comments