You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
! just test pointer: Error on property evaluation after 0 passed tests:
Check paniced: reflect: Call using []main.Empty as type []*main.Empty
ARG_0: []
I think reflect.TypeOf(&Empty{}) returns *main.Empty instead of main.Empty, but according to the error messages, the generated type is []main.Empty; so I just wonder whether there's something wrong with my code here.
The text was updated successfully, but these errors were encountered:
Hi,
I got an error when trying to generating a slice of pointers using the code below:
The error was:
I think
reflect.TypeOf(&Empty{})
returns*main.Empty
instead ofmain.Empty
, but according to the error messages, the generated type is[]main.Empty
; so I just wonder whether there's something wrong with my code here.The text was updated successfully, but these errors were encountered: