mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-13 23:14:20 +00:00
test(go): keep method enrichment fixture in one package
This commit is contained in:
parent
a8f27b9727
commit
943273a3ca
1 changed files with 4 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue