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 4952967 commit 20139adCopy full SHA for 20139ad
vlib/v/checker/checker.v
@@ -491,7 +491,7 @@ pub fn (mut c Checker) sum_type_decl(node ast.SumTypeDecl) {
491
} else if sym.kind == .interface_ && sym.language != .js {
492
c.error('sum type cannot hold an interface', variant.pos)
493
} else if sym.kind == .struct_ && sym.language == .js {
494
- c.error('sum type cannot hold an JS struct', variant.pos)
+ c.error('sum type cannot hold a JS struct', variant.pos)
495
} else if mut sym.info is ast.Struct {
496
if sym.info.is_generic {
497
if !variant.typ.has_flag(.generic) {
0 commit comments