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

Closed
mvertes opened this issue Nov 26, 2024 · 2 comments
Closed

map of interface failure #3204

mvertes opened this issue Nov 26, 2024 · 2 comments
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
@petar-dambovaliev petar-dambovaliev moved this from Todo to In Progress in 🧙‍♂️gno.land core team Dec 3, 2024
@petar-dambovaliev
Copy link
Contributor

fixed by #3222

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