Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A nil `*ParseError` is stored in a variable of type `error`. What is true?" on CodeWiki (https://codewiki.com/practice/mcq/go/checkpoint-1/checkpoint-1-typed-nil/).
Context (verbatim from the page):
"""
A nil `*ParseError` is stored in a variable of type `error`. What is true?
The interface is not equal to `nil` because it has dynamic type `*ParseError`.
The interface is equal to `nil` because its dynamic pointer value is nil.
Assigning a nil pointer to an interface is a compile-time error.
"""
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.