Skip to content

Commit

Permalink
Merge pull request #1449 from GaijinEntertainment/missing_return_valu…
Browse files Browse the repository at this point in the history
…e_move

tuple, variant, some enum and bitfield fixes
  • Loading branch information
borisbat authored Dec 24, 2024
2 parents a2927d0 + 5041154 commit 16e1645
Show file tree
Hide file tree
Showing 5 changed files with 30,433 additions and 29,857 deletions.
48 changes: 40 additions & 8 deletions examples/test/misc/hello_new_syntax.das
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ enum private Enum64 : uint64 { // 64 bit enum, private
THREE = 16ul
}

enum WhiteSpaceEnum {
enum WhiteSpaceEnum

{

ONE
TWO,,,,,,
Expand Down Expand Up @@ -137,7 +139,9 @@ bitfield MyBitfield {
THREE
}

bitfield WhiteSpaceBitfield {
bitfield WhiteSpaceBitfield

{

ONE
TWO,,,,,,
Expand Down Expand Up @@ -203,9 +207,23 @@ def test_new_struct {
// tuples

tuple Tup {
a : int;
b : float;
c : string;
a : int
b : float
c : string
}

tuple WhiteSpaceTuple

{

a : int
b : float;;;;;;;;;;;;

c : string

d : int
;

}

[export]
Expand All @@ -223,9 +241,23 @@ def test_tuples {
// variants

variant Varr {
a : int;
b : float;
c : string;
a : int
b : float
c : string
}

variant WhiteSpaceVariant

{

a : int
b : float;;;;;;;;;;;;

c : string

d : int
;

}

[export]
Expand Down
48 changes: 40 additions & 8 deletions examples/test/misc/hello_world.das
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ enum private Enum64 : uint64 { // 64 bit enum, private
THREE = 16ul
}

enum WhiteSpaceEnum {
enum WhiteSpaceEnum

{

ONE
TWO,,,,,,
Expand Down Expand Up @@ -137,7 +139,9 @@ bitfield MyBitfield {
THREE
}

bitfield WhiteSpaceBitfield {
bitfield WhiteSpaceBitfield

{

ONE
TWO,,,,,,
Expand Down Expand Up @@ -203,9 +207,23 @@ def test_new_struct {
// tuples

tuple Tup {
a : int;
b : float;
c : string;
a : int
b : float
c : string
}

tuple WhiteSpaceTuple

{

a : int
b : float;;;;;;;;;;;;

c : string

d : int
;

}

[export]
Expand All @@ -223,9 +241,23 @@ def test_tuples {
// variants

variant Varr {
a : int;
b : float;
c : string;
a : int
b : float
c : string
}

variant WhiteSpaceVariant

{

a : int
b : float;;;;;;;;;;;;

c : string

d : int
;

}

[export]
Expand Down
Loading

0 comments on commit 16e1645

Please sign in to comment.