checker: fix incorrect checks when struct fields are ref and option type(fix #19555) (#20195)

This commit is contained in:
shove 2023-12-17 02:45:54 +08:00 committed by GitHub
parent 136193a3aa
commit 51aaf3c49f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 25 additions and 3 deletions

View file

@ -9,7 +9,7 @@ struct PostTag {
}
fn test_main() {
new_post_tag := PostTag{}
new_post_tag := &PostTag{}
assert json.encode(new_post_tag) == '{"id":"","visibility":"","createdAt":"","metadata":""}'
new_post_tag2 := PostTag{