Write method for object

Yeah, I agree that explicitly throwing a MethodError is unhelpful, precisely because it creates confusing messages just like this. This is the same problem that replace has, and it’s also confusing: Cannot find overloaded method - #7 by GunnarFarneback