diff --git a/uni_modules/uts-tests/utssdk/JSON.uts b/uni_modules/uts-tests/utssdk/JSON.uts index e1092597e46537def85f725054ff5b6bc98ceacc..ec183d72afc75e967982ad86dca7c44520fecce9 100644 --- a/uni_modules/uts-tests/utssdk/JSON.uts +++ b/uni_modules/uts-tests/utssdk/JSON.uts @@ -405,16 +405,19 @@ export function testJSON() : Result { }) test('parse generic type', () => { + // #ifndef APP-ANDROID type A = { num: number, } function test(json: string): T { return JSON.parse(json)! } + // #ifndef APP-IOS const a = test(`{"num": 1}`) expect(a.num).toEqual(1) // #endif + // #endif })