blob: 7249fb63e193e1e0c18422bb632d8fdd17521830 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[GenericAccessors]
interface IFoo<G> : Object {
public async void bar (owned G g) {
assert (typeof (G) == typeof (string));
assert (g == "foo");
baz (g);
}
public void baz (owned G g) {
assert (g == "foo");
}
}
class Foo : Object, IFoo<string> {
}
void main () {
var foo = new Foo ();
foo.bar.begin ("foo");
}
|