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

map of interface failure #3204

Open
mvertes opened this issue Nov 26, 2024 · 1 comment
Open

map of interface failure #3204

mvertes opened this issue Nov 26, 2024 · 1 comment
Assignees
Labels
🐞 bug Something isn't working in focus Core team is prioritizing this work 📦 🤖 gnovm Issues or PRs gnovm related

Comments

@mvertes
Copy link
Contributor

mvertes commented Nov 26, 2024

The following valid Go code fails with gno:

package main

import "fmt"

type I interface {
	Name() string
}

type S struct {
	iMap map[string]I
}

func main() {
	s := S{}
	s.iMap = map[string]I{}
	fmt.Println(s)
}

// Output:
// {map[]}
@thehowl
Copy link
Member

thehowl commented Nov 28, 2024

I think it fails because of gonative, still; maybe we should close since we'll be going for #1361 .

@Kouteki Kouteki added the in focus Core team is prioritizing this work label Dec 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working in focus Core team is prioritizing this work 📦 🤖 gnovm Issues or PRs gnovm related
Projects
Development

No branches or pull requests

5 participants