File tree 1 file changed +15
-0
lines changed
jbmc/unit/java_bytecode/goto_program_generics
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,21 @@ SCENARIO(
102
102
require_goto_statements::require_entry_point_argument_assignment (
103
103
" this" , entry_point_code);
104
104
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
+
105
120
THEN (" Object 'this' has field 'field_input1' of type Wrapper" )
106
121
{
107
122
const auto &field_input1_name =
You can’t perform that action at this time.
0 commit comments