GNOME Bugzilla – Bug 589236
One can't use & (address-of) on a generic type parameter
Last modified: 2009-07-21 12:24:11 UTC
When provided the following code: public class Test<V> { public void dumb_method(V in_value, out V? out_value) { if (&out_value != null) { out_value = in_value; } } } valac reports: error: Address-of operator not supported for this expression This works for any other variable type.
This commit fixes it: http://git.freesmartphone.org/?p=vala-lang.git;a=commitdiff;h=50097e7d7722ab47742d713119bd4ef6da533b39
commit 60ac7e30c7fa108537eeae51a1bb8a144c80f176 Author: Didier 'Ptitjes <ptitjes@free.fr> Date: Tue Jul 21 10:11:57 2009 +0200 Support taking address of generic variables Fixes bug 589236. Signed-off-by: Didier 'Ptitjes <ptitjes@free.fr>