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
gdk-3.0: Atom is an IntegerType
[vala-gnome.git]
/
tests
/
chainup
/
struct-base.vala
blob
b1622cc24ee50d2682cb3ca8048579d296ef6746
1
public struct
Foo
{
2
public
int
i
;
3
public
int
j
;
4
public
Foo
() {
5
i
=
1
;
6
}
7
}
8
9
public struct
Bar
:
Foo
{
10
public
Bar
() {
11
base
();
12
this
.
j
=
1
;
13
}
14
}
15
16
void
main
() {
17
var
bar
=
Bar
();
18
assert
(
bar
.
i
==
1
);
19
assert
(
bar
.
j
==
1
);
20
}