Skip to main content
Journey Uncommon Logo
JourneyUncommon
hardGointerface representation iface itabSingle-choice MCQ

Predict the output. Why is it what it is?

type I interface{ M() } type T1 struct{} func (T1) M() {} type T2 struct{} func (T2) M() {} func main() { var a I = T1{} var b I = T2{} println(a == b) }