@@ -1673,11 +1673,12 @@ TEST(weak_call_guards_share_one_drop_list) {
16731673 strategies [i ], member , binding );
16741674 }
16751675 ASSERT_EQ (member , binding );
1676- /* The Go selector guard builds on the same list and narrows it in
1677- * exactly one place at a penalized confidence (0.75 * 0.5): it keeps
1678- * field_type_hint. Any other drift from the shared list fails here. */
1676+ /* The Go selector guard builds on the same list. At a penalized
1677+ * confidence (0.75 * 0.5) it agrees with it exactly; its one narrowing
1678+ * (an unpenalized unique_name) does not apply here. Any drift from
1679+ * the shared list fails here. */
16791680 bool go = cbm_go_suppress_weak_method_match (true, true, strategies [i ], 0.375 );
1680- bool go_expected = member && strcmp ( strategies [ i ], "field_type_hint" ) != 0 ;
1681+ bool go_expected = member ;
16811682 if (go != go_expected ) {
16821683 printf (" Go drop-list divergence on strategy \"%s\": go=%d expected=%d\n" ,
16831684 strategies [i ], go , go_expected );
@@ -1697,6 +1698,9 @@ TEST(go_suppress_drops_weak_selector_matches) {
16971698 ASSERT_TRUE (cbm_go_suppress_weak_method_match (true, true, "suffix_match" , 0.11 ));
16981699 ASSERT_TRUE (cbm_go_suppress_weak_method_match (true, true, "fuzzy" , 0.9 ));
16991700 ASSERT_TRUE (cbm_go_suppress_weak_method_match (true, true, "unique_name" , 0.375 ));
1701+ /* field_type_hint is a receiver-NAME substring match, not type evidence
1702+ * (F-G9): weak for Go like the shared list. */
1703+ ASSERT_TRUE (cbm_go_suppress_weak_method_match (true, true, "field_type_hint" , 0.85 ));
17001704 PASS ();
17011705}
17021706
@@ -1706,9 +1710,6 @@ TEST(go_suppress_keeps_typed_and_import_aware_matches) {
17061710 * lone-candidate call never enters the field-type-hint upgrade, so it must
17071711 * survive (lrp_go_s8_field_type_hint). */
17081712 ASSERT_FALSE (cbm_go_suppress_weak_method_match (true, true, "unique_name" , 0.75 ));
1709- /* field_type_hint is receiver-aware for Go — struct fields carry declared
1710- * types (lrp_go_s8_field_type_hint) — so it stays, unlike the TS/JS list. */
1711- ASSERT_FALSE (cbm_go_suppress_weak_method_match (true, true, "field_type_hint" , 0.85 ));
17121713 ASSERT_FALSE (cbm_go_suppress_weak_method_match (true, true, "same_module" , 0.9 ));
17131714 ASSERT_FALSE (cbm_go_suppress_weak_method_match (true, true, "import_map" , 0.95 ));
17141715 ASSERT_FALSE (cbm_go_suppress_weak_method_match (true, true, "import_map_suffix" , 0.9 ));
0 commit comments