checker: fix error declaration on a value (#6390)
							parent
							
								
									e2e683199d
								
							
						
					
					
						commit
						608df40058
					
				| 
						 | 
				
			
			@ -1844,7 +1844,11 @@ pub fn (mut c Checker) assign_stmt(mut assign_stmt ast.AssignStmt) {
 | 
			
		|||
						assign_stmt.pos)
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
			else {}
 | 
			
		||||
			else {
 | 
			
		||||
				if is_decl {
 | 
			
		||||
					c.error('non-name `$left` on left side of `:=`', left.position())
 | 
			
		||||
				}
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
		left_type_unwrapped := c.unwrap_generic(left_type)
 | 
			
		||||
		right_type_unwrapped := c.unwrap_generic(right_type)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue