repo.or.cz
/
vala-gnome.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Release 0.41.92
[vala-gnome.git]
/
tests
/
structs
/
bug654753.vala
blob
3f8e13f82255986724d7f209f7f61bb9bcf0b907
1
struct
Foo
{
2
int
baz
;
3
4
public
void
bar
(
Foo f
) {
5
baz
=
10
;
6
f
.
baz
=
20
;
7
}
8
}
9
10
void
main
() {
11
Foo
[]
array
=
new Foo
[
2
];
12
array
[
0
].
bar
(
array
[
1
]);
13
assert
(
array
[
0
].
baz
==
10
);
14
assert
(
array
[
1
].
baz
==
0
);
15
}