codegen: Fix floating reference regression with Variants
[vala-gnome.git] / tests / delegates / reference_transfer.vala
blob6aad6b1f97974ef45168e54781ac0599669e461f
1 delegate void FooFunc ();
3 class Foo {
4 FooFunc f;
6 public Foo (owned FooFunc d) {
7 f = (owned) d;
8 assert (d == null);
12 void main () {
13 var foo = new Foo (() => {});