Spot the bug in the IsNil helper

from Reflection
Go 1.27 intermediate 4 min 1 issue to find

This helper should report whether any input is nil without panicking. Find the unsafe operation.

Go
package main

import "reflect"

func IsNil(input any) bool {
    return reflect.ValueOf(input).IsNil()
}

func main() {
    println(IsNil(3))
}
Open in playground
Report an error