mirror of
				https://github.com/vlang/v.git
				synced 2023-08-10 21:13:21 +03:00 
			
		
		
		
	fix vweb template compilation
This commit is contained in:
		@@ -3097,7 +3097,7 @@ fn (p mut Parser) return_st() {
 | 
			
		||||
	}
 | 
			
		||||
	else {
 | 
			
		||||
		// Don't allow `return val` in functions that don't return anything
 | 
			
		||||
		if p.tok == .name || p.tok == .number || p.tok == .str {
 | 
			
		||||
		if !p.is_vweb && (p.tok == .name || p.tok == .number || p.tok == .str) { 
 | 
			
		||||
			p.error('function `$p.cur_fn.name` should not return a value')
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user