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