GNOME Bugzilla – Bug 628639
Passing abstract type as signal parameter causes compiler to crash
Last modified: 2011-02-08 21:11:03 UTC
I'm using Vala 0.9.7. I'm creating a generic class that has a signal. That signal's sole parameter is of type 'G', the abstract type: public class Generic<G> { public signal void sig(G item); public virtual void fire(G item) { sig(item); } } When I include in the code the line to connect to the signal, the compiler crashes with this assertion: ERROR:valasemanticanalyzer.c:2953:vala_semantic_analyzer_get_actual_type: assertion failed: (instance_type != NULL) I've attached a test case.
Created attachment 169390 [details] Minimal test case
commit 36999b5ffd63cc56a8648791b02bf07e7da88077 Author: Jürg Billeter <j@bitron.ch> Date: Tue Feb 8 22:08:03 2011 +0100 Fix signals with generic parameters Fixes bug 628639.