On Sun, 25 Feb 2018 01:01:08 -0800 Dave Cheney <d...@cheney.net> wrote: Dave Cheney writes: > ------=_Part_12529_340231507.1519549268925 > Content-Type: text/plain; charset="UTF-8" > > Type C conforms to the T1 interface? > > What did you expect?
C conforms to both T1 and T2. var x2 T2 x2 = c switch x2.(type) matches case T1 -- this is what I find strange. Why not case T2? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.