Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumGostruct embedding and promotionSingle-choice MCQ

An embedded interface field is left nil. What is the result of calling the promoted method?

type Wrapper struct{ io.Writer } func main() { w := Wrapper{} var out io.Writer = w out.Write([]byte("hi")) }