InvalidExprSwitch occurs when a switch expression is not comparable. Example: func _() { var a struct{ _ func() } switch a /* ERROR cannot switch on a */ { } }