mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: fix optional struct declarations for empty structs (#13970)
This commit is contained in:
@ -1,9 +1,7 @@
|
||||
import json
|
||||
import os
|
||||
|
||||
struct DbConfig {
|
||||
foo int
|
||||
}
|
||||
struct DbConfig {}
|
||||
|
||||
fn test_json_decode_with_optional_arg() {
|
||||
if ret := print_info() {
|
||||
|
Reference in New Issue
Block a user