Fix decl c struct follow a v struct
struct C.CURL
struct Curl {
    h *C.CURL
}
			
			
				pull/1049/head
			
			
		
							parent
							
								
									6cb5eee1b2
								
							
						
					
					
						commit
						7ca00c8f5e
					
				|  | @ -422,7 +422,7 @@ fn (p mut Parser) struct_decl() { | |||
| 		} | ||||
| 	} | ||||
| 	// V used to have 'type Foo struct', many Go users might use this syntax
 | ||||
| 	if p.tok == STRUCT { | ||||
| 	if !is_c && p.tok == STRUCT { | ||||
| 		p.error('use `struct $name {` instead of `type $name struct {`') | ||||
| 	} | ||||
| 	// Register the type
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue