Closed f0mster closed 2 years ago
Matching by parent type is already supported.
type A string
type B string
type C struct {
A string
B string
}
type Copygen Interface {
/* matches A to C.A and B to C.B */
toD(A, B) C
}
The var
keyword is never relevant because we are dealing with types; not variables.
Feel free to request reopening with an example if this is not the case.
Match types by parent type. If we have type A that is made from a basic type string, that means that it can be converted to/from string
Also, I fixed the bug (actually there were two bugs in one) that I reported today.