1
0
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:
yuyi
2022-04-08 19:51:37 +08:00
committed by GitHub
parent 45a427e68b
commit 617608b23d
2 changed files with 2 additions and 4 deletions

View File

@ -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() {