mirror of
				https://github.com/roc-lang/roc.git
				synced 2025-10-30 04:37:11 +00:00 
			
		
		
		
	Fix more cases of when in guard
This commit is contained in:
		
							parent
							
								
									903b792fd3
								
							
						
					
					
						commit
						6b08f42d02
					
				
					 5 changed files with 99 additions and 0 deletions
				
			
		|  | @ -1779,6 +1779,8 @@ fn guard_needs_parens(value: &Expr<'_>) -> bool { | |||
|         Expr::ParensAround(expr) | Expr::SpaceBefore(expr, _) | Expr::SpaceAfter(expr, _) => { | ||||
|             guard_needs_parens(expr) | ||||
|         } | ||||
|         Expr::Closure(_, body) => guard_needs_parens(&body.value), | ||||
|         Expr::Defs(_, final_expr) => guard_needs_parens(&final_expr.value), | ||||
|         _ => false, | ||||
|     } | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Joshua Warner
						Joshua Warner