Polymorphic copy: Difference between revisions

Content added Content deleted
No edit summary
Line 656: Line 656:


// in the terminology of the Go language reference, i1, i2, and i3
// in the terminology of the Go language reference, i1, i2, and i3
// still have static type t, but now have different dynamic types.
// still have static type i, but now have different dynamic types.
i1, i2, i3 = t1, s1, r1
i1, i2, i3 = t1, s1, r1
fmt.Println("\nPolymorphic:")
fmt.Println("\nPolymorphic:")