Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Given func (s *Sequence) Next() int, which compile-time assertion is valid?" on CodeWiki (https://codewiki.com/practice/mcq/go/interfaces/pointer-method-set/).
Context (verbatim from the page):
"""
Given func (s *Sequence) Next() int, which compile-time assertion is valid?
var _ Counter = (*Sequence)(nil)
var _ Counter = Sequence{}
var _ *Counter = Sequence{}
var _ Sequence = Counter(nil)
"""
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.