We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fefa30 commit b3c489bCopy full SHA for b3c489b
1 file changed
vlib/v/checker/fn.v
@@ -62,8 +62,8 @@ fn (c &Checker) struct_embeds_type(got ast.Type, expected ast.Type) bool {
62
expected_unaliased := c.table.unaliased_type(expected)
63
for embed in got_info.embeds {
64
embed_unaliased := c.table.unaliased_type(embed)
65
- if embed_unaliased == expected_unaliased || c.struct_embeds_type(embed_unaliased,
66
- expected_unaliased) {
+ if embed_unaliased == expected_unaliased
+ || c.struct_embeds_type(embed_unaliased, expected_unaliased) {
67
return true
68
}
69
0 commit comments