Skip to content

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

Open
@danielvladco

Description

@danielvladco

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestreflectionNeeds further work on reflection

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions