checker: fix typo (#14368)
							parent
							
								
									31453e321a
								
							
						
					
					
						commit
						b1b10f48ad
					
				| 
						 | 
					@ -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) {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue