Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyGomethods on typesSingle-choice MCQ

Why does this code fail to compile?

package main type MyInt int func (m MyInt) Double() MyInt { return m * 2 } func main() { var x int = 5 _ = x.Double() }