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
tests: Add test for parameter type checking of async methods
[vala-gnome.git]
/
tests
/
asynchronous
/
bug792660.vala
blob
b5ffdddefc446a4a05142753f1f494b0fcaef0e9
1
abstract class
Foo
{
2
public abstract
async
void
foo
([
CCode
(
array_length
=
false
)]
string
[]
a
,
int
i
);
3
}
4
5
class
Bar
:
Foo
{
6
public override
async
void
foo
(
string
[]
a
,
int
i
) {
7
assert
(
i
==
42
);
8
}
9
}
10
11
void
main
() {
12
string
[]
a
= {
"foo"
,
"bar"
};
13
var
bar
=
new
Bar
();
14
bar
.
foo
.
begin
(
a
,
42
);
15
}