mirror of
https://github.com/traefik/yaegi.git
synced 2026-06-01 18:37:56 +00:00
This supports type spec assign types which disallows the attachment of methods onto the alias type as per the Go spec. Fixes #1154
12 lines
109 B
Go
12 lines
109 B
Go
package main
|
|
|
|
func (f *Foo) Bar() int {
|
|
return *f * *f
|
|
}
|
|
|
|
func main() {
|
|
}
|
|
|
|
// Error:
|
|
// 3:1: undefined: Foo
|