File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
jbmc/unit/java_bytecode/goto_program_generics Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,21 @@ SCENARIO(
102102 require_goto_statements::require_entry_point_argument_assignment (
103103 " this" , entry_point_code);
104104
105+ THEN (" Type of multiple generic fields should be right" )
106+ {
107+ const typet &class_type =
108+ symbol_table.lookup_ref (" java::GenericFields$MultipleGenericFields" )
109+ .type ;
110+
111+ const auto &component = require_type::require_component (
112+ to_java_class_type (class_type), " field_input2" );
113+
114+ const java_generic_typet &type =
115+ require_type::require_java_generic_type (component.type ());
116+ require_type::require_pointer (
117+ type.generic_type_arguments ()[0 ], symbol_typet{" java::BWrapper" });
118+ }
119+
105120 THEN (" Object 'this' has field 'field_input1' of type Wrapper" )
106121 {
107122 const auto &field_input1_name =
You can’t perform that action at this time.
0 commit comments