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
vala: Allow read-only properties
[vala-gnome.git]
/
tests
/
structs
/
bug572091.vala
blob
5fa37885c8b2fabf8611270cb4e24e7356d2b8c2
1
struct
Foo
{
2
public
int
bar
;
3
}
4
5
void
baz
(
Foo foo
) {
6
foo
.
bar
=
2
;
7
}
8
9
void
main
() {
10
var
foo
=
Foo
() {
bar
=
1
};
11
baz
(
foo
);
12
assert
(
foo
.
bar
==
1
);
13
}