repo.or.cz
/
vala-lang.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
D-Bus: Remove extra semicolon to avoid C warning
[vala-lang.git]
/
tests
/
structs
/
bug606202.vala
blob
78beb5b8d3bef60a3b4023d59ee6e8ce46c634eb
1
struct
Foo
{
2
string
s
;
3
4
public
Foo
(
string
s
) {
5
this
.
s
=
s
;
6
}
7
}
8
9
class
Bar
:
Object
{
10
public
Foo? foo
{
get
;
set
; }
11
}
12
13
void
main
() {
14
var
bar
=
new
Bar
();
15
var
foo
=
Foo
(
"hello"
);
16
bar
.
foo
=
foo
;
17
assert
(
bar
.
foo
.
s
==
"hello"
);
18
}