Add: Test for nested struct formatting

This commit is contained in:
sobaya 2019-08-03 08:55:32 +09:00
parent 05db8ae8fa
commit b3946b7525
3 changed files with 12 additions and 3 deletions

View File

@ -1,6 +1,9 @@
void main()
{
S s = {
S s1 = {a: 3};
S s2 = {a: 3, b: "test string"};
S s3 = {a: 3, b: "test string", c: {x: 3.14, y: 3 + 4}};
T t = {
someStructMember1: 2, someStructMember2: 42, someStructMember3: null, // foobar
someOtherMember1: objA, someOtherMember2: objB, someOtherMember3: 0,
somethingMore: null, someFlagInThisStruct: -1

View File

@ -1,5 +1,8 @@
void main() {
S s = {
S s1 = { a: 3 };
S s2 = { a: 3, b:"test string" };
S s3 = { a: 3, b:"test string", c: {x: 3.14, y: 3 + 4} };
T t = {
someStructMember1: 2,
someStructMember2: 42,
someStructMember3: null, // foobar

View File

@ -1,5 +1,8 @@
void main() {
S s = {
S s1 = {a: 3};
S s2 = {a: 3, b: "test string"};
S s3 = {a: 3, b: "test string", c: {x: 3.14, y: 3 + 4}};
T t = {
someStructMember1: 2, someStructMember2: 42, someStructMember3: null, // foobar
someOtherMember1: objA, someOtherMember2: objB, someOtherMember3: 0,
somethingMore: null, someFlagInThisStruct: -1