From 943273a3ca9bb2f0ce7d006a86afdd115da50077 Mon Sep 17 00:00:00 2001 From: Abhinav Pandey Date: Sun, 6 Sep 2026 09:24:23 +0530 Subject: [PATCH] test(go): keep method enrichment fixture in one package --- .../fixtures/lang-resolution/go-method-enrichment/app.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gitnexus/test/fixtures/lang-resolution/go-method-enrichment/app.go b/gitnexus/test/fixtures/lang-resolution/go-method-enrichment/app.go index 9de68c3b0..c2734574a 100644 --- a/gitnexus/test/fixtures/lang-resolution/go-method-enrichment/app.go +++ b/gitnexus/test/fixtures/lang-resolution/go-method-enrichment/app.go @@ -1,9 +1,10 @@ -package main - -import "animal" +// This fixture exercises method enrichment and a valid same-package free call. +// A different package with a normal import cannot refer to Dog or Classify bare. +package animal func main() { dog := Dog{} sound := dog.Speak() category := Classify("dog") + _, _ = sound, category }