diff --git a/tests/allman/issue0256.d.ref b/tests/allman/issue0256.d.ref index e7463d5..5776aec 100644 --- a/tests/allman/issue0256.d.ref +++ b/tests/allman/issue0256.d.ref @@ -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 diff --git a/tests/issue0256.d b/tests/issue0256.d index f4d44dc..18f4c98 100644 --- a/tests/issue0256.d +++ b/tests/issue0256.d @@ -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 diff --git a/tests/otbs/issue0256.d.ref b/tests/otbs/issue0256.d.ref index 2d0098f..ca215a4 100644 --- a/tests/otbs/issue0256.d.ref +++ b/tests/otbs/issue0256.d.ref @@ -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