Skip to content

reflect: reflect.Value.Call panic for call args is interface type #2020

Description

@visualfc
package main

import (
	"reflect"
)

func main() {
	fn := reflect.ValueOf(reflect.New)
	typ := reflect.TypeOf(0)
	v := reflect.ValueOf(typ)
	fn.Call([]reflect.Value{v})
}

llgo run .

panic: runtime error: invalid memory address or nil pointer dereference

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions