Skip to content

reflect: PtrTo of struct with embedded field does not implement interfaces correctly #8427

@bryanturley

Description

@bryanturley
This one is hard to explain, luckily it is very simply reproduced.
Keep your attention on output regarding the anonymous struct F {} inside of struct Z {}

If you uncomment the /* */ area at the end.  The reflection answers before it change.
I would say they are only correct when that section is uncommented.
This program should never print "... == false".

http://play.golang.org/p/GDUfhs8g2H

Discovered originally using go1.3 linux amd64.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions