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
/
chainup
/
bug791785.vala
blob
eb46b0141def8e4d565e51f0fd51aea2a446d02c
1
struct
Foo
{
2
public
int
i
;
3
}
4
5
abstract class
AbstractBar
{
6
public
Foo foo
;
7
8
public
AbstractBar
(
Foo foo
) {
9
this
.
foo
=
foo
;
10
}
11
}
12
13
class
Bar
:
AbstractBar
{
14
public
Bar
(
Foo foo
) {
15
base
(
foo
);
16
}
17
}
18
19
void
main
() {
20
var
bar
=
new
Bar
({
42
});
21
assert
(
bar
.
foo
.
i
==
42
);
22
}
23