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

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

Unexported struct fields are unsupported #3206

mvertes opened this issue Nov 26, 2024 · 1 comment
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}]
@thehowl
Copy link
Member

thehowl commented Nov 28, 2024

In Printf.

Duplicate: #1155. See-also #1361

@thehowl thehowl closed this as not planned Won't fix, can't repro, duplicate, stale Nov 28, 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 📦 🤖 gnovm Issues or PRs gnovm related
Projects
Development

No branches or pull requests

5 participants