Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Declare Point and Point3D as above.
- func main() {
- points := make([]*Point, 0)
- p1 := NewPoint(3, 4)
- p2 := NewPoint3D(1, 2, 3)
- // Error!
- points = append(points, p1, p2)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement