diff --git a/toolchain/check/import_ref.cpp b/toolchain/check/import_ref.cpp index f0bc83e4b22b6..6921632c36fd3 100644 --- a/toolchain/check/import_ref.cpp +++ b/toolchain/check/import_ref.cpp @@ -1418,7 +1418,8 @@ class ImportRefResolver { class_decl.class_id = context_.classes().Add( {GetIncompleteLocalEntityBase(class_decl_id, import_class), {.self_type_id = SemIR::TypeId::Invalid, - .inheritance_kind = import_class.inheritance_kind}}); + .inheritance_kind = import_class.inheritance_kind, + .is_dynamic = import_class.is_dynamic}}); if (import_class.has_parameters()) { class_decl.type_id = context_.GetGenericClassType(class_decl.class_id, diff --git a/toolchain/check/testdata/class/virtual_modifiers.carbon b/toolchain/check/testdata/class/virtual_modifiers.carbon index 6d7c8eeba9f19..d3af60eff68c4 100644 --- a/toolchain/check/testdata/class/virtual_modifiers.carbon +++ b/toolchain/check/testdata/class/virtual_modifiers.carbon @@ -133,7 +133,7 @@ fn F() { // CHECK:STDOUT: %.3: = complete_type_witness %.2 [template] // CHECK:STDOUT: %.4: type = ptr_type %.2 [template] // CHECK:STDOUT: %.5: type = unbound_element_type %Derived, %Base [template] -// CHECK:STDOUT: %.6: type = struct_type {.: %.1, .base: %Base} [template] +// CHECK:STDOUT: %.6: type = struct_type {.base: %Base} [template] // CHECK:STDOUT: %.7: = complete_type_witness %.6 [template] // CHECK:STDOUT: } // CHECK:STDOUT: