From fb6a81dd379b9211f0255f704f19163ba05ab114 Mon Sep 17 00:00:00 2001 From: Manodasan Wignarajah Date: Mon, 16 May 2022 21:47:51 -0700 Subject: [PATCH] Making the static ABI classes internal if type was marked with ProjectionInternal (#1196) --- src/cswinrt/code_writers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cswinrt/code_writers.h b/src/cswinrt/code_writers.h index ce770fadb..aa2fe6a31 100644 --- a/src/cswinrt/code_writers.h +++ b/src/cswinrt/code_writers.h @@ -5973,7 +5973,7 @@ public static Guid PIID = Vftbl.PIID; % } )", - is_exclusive_to(iface) ? "internal" : internal_accessibility(), + (is_exclusive_to(iface) || is_projection_internal(iface)) ? "internal" : internal_accessibility(), bind(iface, typedef_name_type::StaticAbiClass, false), [&](writer& w) { if (!fast_abi_class_val.has_value() || (!fast_abi_class_val.value().contains_other_interface(iface) && !interfaces_equal(fast_abi_class_val.value().default_interface, iface))) {