| 1 | import os |
| 2 | |
| 3 | struct KeepAnyLanguagePrefixVariation { |
| 4 | x C.bar |
| 5 | y &C.bar |
| 6 | z []C.bar |
| 7 | z2 []&C.bar |
| 8 | } |
| 9 | |
| 10 | fn foo(a []os.File) { |
| 11 | } |
| 12 | |
| 13 | struct User { |
| 14 | age int |
| 15 | name string |
| 16 | } |
| 17 | |
| 18 | fn handle_users(users []User) { |
| 19 | println(users.len) |
| 20 | } |
| 21 | |
| 22 | fn (u &User) foo(u2 &User) { |
| 23 | } |
| 24 | |
| 25 | type Expr = IfExpr | IntegerLiteral |
| 26 | |
| 27 | fn exprs(e []Expr) { |
| 28 | println(e.len) |
| 29 | } |
| 30 | |
| 31 | struct KeepStructEmbed { |
| 32 | User |
| 33 | pub: |
| 34 | a int |
| 35 | b int |
| 36 | } |
| 37 | |
| 38 | struct KeepMultiLineDefaultExprsIndent { |
| 39 | buttons []PeriodButton = [PeriodButton{ |
| 40 | period: pr.Period.m1 |
| 41 | text: 'M1' |
| 42 | }, PeriodButton{ |
| 43 | period: pr.Period.m5 |
| 44 | text: 'M5' |
| 45 | }] |
| 46 | } |
| 47 | |
| 48 | @[typedef] |
| 49 | pub struct C.some_t { |
| 50 | @type int |
| 51 | data struct {} |
| 52 | |
| 53 | } |
| 54 | |