Add: Test for nested struct formatting
This commit is contained in:
parent
05db8ae8fa
commit
b3946b7525
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue