Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dot import causes undefined type error on Slice or Array literal #1360

Closed
torbenschinke opened this issue Mar 23, 2022 · 0 comments · Fixed by #1380
Closed

dot import causes undefined type error on Slice or Array literal #1360

torbenschinke opened this issue Mar 23, 2022 · 0 comments · Fixed by #1380
Labels
area/core bug Something isn't working
Milestone

Comments

@torbenschinke
Copy link

The following program sample.go triggers an unexpected result

package main

import . "net"

func main() {
  // v := make(IP, 0) // works
  v := IP{} // <-  yaegi_test.go:19: 6:7: undefined type 
  println(v)
}

Expected result

<nil>

Got

yaegi_test.go:19: 6:7: undefined type

Yaegi Version

v0.11.2

Additional Notes

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants