test(go): keep method enrichment fixture in one package

This commit is contained in:
Abhinav Pandey 2026-09-06 09:24:23 +05:30
parent a8f27b9727
commit 943273a3ca
No known key found for this signature in database

View file

@ -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
}