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

Unexported struct fields are unsupported #3206

Open
mvertes opened this issue Nov 26, 2024 · 0 comments
Open

Unexported struct fields are unsupported #3206

mvertes opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
🐞 bug Something isn't working 📦 🤖 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 test struct {
	v interface{}
	s string
}

type T struct {
	name string
}

func main() {
    t := []test{
	{
	    v: []interface{}{
		T{"hello"},
	    },
	    s: "world",
	},
    }
    fmt.Println(t)
}

// Output:
// [{[{hello}] world}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 📦 🤖 gnovm Issues or PRs gnovm related
Projects
Development

No branches or pull requests

4 participants