From a758b6686c0ed8af62647314c628f7f2b4193d44 Mon Sep 17 00:00:00 2001 From: yuyi Date: Tue, 23 Aug 2022 12:59:50 +0800 Subject: [PATCH] json: minor cleanup in json_test.v (#15501) --- vlib/json/json_test.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vlib/json/json_test.v b/vlib/json/json_test.v index 21ffd84234..d4a0f91878 100644 --- a/vlib/json/json_test.v +++ b/vlib/json/json_test.v @@ -490,20 +490,20 @@ fn test_byte_array() { } struct Aa { - sub SumType + sub AliasType } struct Bb { a int } -type SumType = Bb +type AliasType = Bb fn test_encode_alias_field() { s := json.encode(Aa{ - sub: SumType(Bb{ + sub: Bb{ a: 1 - }) + } }) println(s) assert s == '{"sub":{"a":1}}'