Open Silentdoer opened 2 years ago
ahh,, no one can anwser?
As with #15368 please use the BUG ISSUE TEMPLATE on the first post of an issue.
hi, i update the comment use BUG ISSUE TEMPLATE, by the way what is the usefulness of the mut keyword for interface methods?
interface Speaker {
// Question 1: By the way, does this mut have any use for the speak method?
// Because regardless of whether there is mut in the interface definition, the parameters that implement speak can have mut
mut:
speak()
}
please see Question 1 and Question 2 and FLAG
V version:0.3.0 6a728e1 OS:Windows 10
What did you do? Check the consistency of variable assignments and function parameter assignments as deep or shallow copies
What did you expect to see? prints: 0x14efe5c 0x14efe1c foo2:0x14efe3c // just not equals 0x14efe5c
What did you see instead? 0x14efe5c 0x14efe1c foo2:0x14efe5c
Remove the output result of implementing mut on the speak method parameter: