1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

checker: fix typo (#14368)

This commit is contained in:
Hunam 2022-05-12 11:23:32 +02:00 committed by GitHub
parent 4952967366
commit 20139ad756
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -491,7 +491,7 @@ pub fn (mut c Checker) sum_type_decl(node ast.SumTypeDecl) {
} else if sym.kind == .interface_ && sym.language != .js { } else if sym.kind == .interface_ && sym.language != .js {
c.error('sum type cannot hold an interface', variant.pos) c.error('sum type cannot hold an interface', variant.pos)
} else if sym.kind == .struct_ && sym.language == .js { } else if sym.kind == .struct_ && sym.language == .js {
c.error('sum type cannot hold an JS struct', variant.pos) c.error('sum type cannot hold a JS struct', variant.pos)
} else if mut sym.info is ast.Struct { } else if mut sym.info is ast.Struct {
if sym.info.is_generic { if sym.info.is_generic {
if !variant.typ.has_flag(.generic) { if !variant.typ.has_flag(.generic) {