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

IsExported undefined (type reflect.Method has no field or method IsExported) #3992

Open
danielvladco opened this issue Nov 9, 2023 · 0 comments
Labels
reflection Needs further work on reflection

Comments

@danielvladco
Copy link

Hello, thanks for your amazing work on tinygo!

I am facing an issue accessing IsExported method from the reflect package

Minimal steps to reproduce:

  1. Write this program:
package main

import (
	"reflect"
)

func main() {
	if reflect.TypeOf(0).Method(0).IsExported() {
		println("IsExported exists")
	}
}
  1. Run tinygo build .

Expected result

To compile and build

Actual result

Error:

main.go:8:33: reflect.TypeOf(0).Method(0).IsExported undefined (type reflect.Method has no field or method IsExported)
@soypat soypat added the reflection Needs further work on reflection label Dec 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reflection Needs further work on reflection
Projects
None yet
Development

No branches or pull requests

2 participants