codegen: Fix floating reference regression with Variants
[vala-gnome.git] / tests / objects / bug683646.vala
blobde8981f35518a708aeaf0eb24d62f3644bf5a6ad
1 delegate void Func ();
3 void foo (Object a, Object? b = null) {
4 b = a;
6 Func sub = () => {
7 var c = a;
8 var d = b;
9 };
12 void main () {
13 foo (new Object ());