All challenges
Multiple ChoiceHard 30s

Typed Nil Interface

var p *T = nil; var i interface{} = p; i == nil is:
Options
  1. 1panics — it dereferences a nil interface value
  2. 2false — the interface has a type but nil value
  3. 3Compile error — the comparison is disallowed
  4. 4true — the interface holds no concrete value

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle