Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "How does a `select` treat a send or receive case whose channel is nil?" on CodeWiki (https://codewiki.com/practice/mcq/go/checkpoint-3/checkpoint-3-nil-select-case/).
Context (verbatim from the page):
"""
How does a `select` treat a send or receive case whose channel is nil?
That case is disabled and cannot be selected while the channel remains nil.
That case is always ready and wins over other cases.
The `select` panics as soon as it evaluates the nil channel.
"""
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.