Skip to content

Dynamic type env fails compilation in v1.17.7 #936

Description

@halvfigur

Something happened in v1.17.7 causing this snippet to fail

t := reflect.New(reflect.StructOf([]reflect.StructField{
	{
		Name:    "value",
		Type:    reflect.TypeFor[bool](),
		PkgPath: "github.com/some/package",
	},
})).Elem().Interface()

if _, err := expr.Compile("value", expr.Env(t)); err != nil {
	panic(err)
}

it compiles without error in v1.17.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions