Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A struct containing a slice is assigned to another variable. Which statement is correct?" on CodeWiki (https://codewiki.com/practice/mcq/go/checkpoint-1/checkpoint-1-struct-copy/).
Context (verbatim from the page):
"""
A struct containing a slice is assigned to another variable. Which statement is correct?
The outer struct is copied, but both slice fields can still refer to the same backing array.
The assignment recursively clones every element and nested value.
Struct assignment is forbidden whenever a field is a slice.
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Go. Where you are unsure, say so.