mirror of https://github.com/sveltejs/svelte
				
				
				
			better error for bindings to let: values - fixes #2301
	
		
	
				
					
				
			
							parent
							
								
									079a1ba276
								
							
						
					
					
						commit
						cd0f535d83
					
				| @ -0,0 +1,15 @@ | |||||||
|  | [{ | ||||||
|  | 	"code": "invalid-binding", | ||||||
|  | 	"message": "Cannot bind to a variable declared with the let: directive", | ||||||
|  | 	"pos": 52, | ||||||
|  | 	"start": { | ||||||
|  | 		"line": 6, | ||||||
|  | 		"column": 8, | ||||||
|  | 		"character": 52 | ||||||
|  | 	}, | ||||||
|  | 	"end": { | ||||||
|  | 		"line": 6, | ||||||
|  | 		"column": 24, | ||||||
|  | 		"character": 68 | ||||||
|  | 	} | ||||||
|  | }] | ||||||
| @ -0,0 +1,7 @@ | |||||||
|  | <script> | ||||||
|  | 	let Foo; | ||||||
|  | </script> | ||||||
|  | 
 | ||||||
|  | <Foo let:bar> | ||||||
|  | 	<input bind:value={bar}> | ||||||
|  | </Foo> | ||||||
					Loading…
					
					
				
		Reference in new issue