GNOME Bugzilla – Bug 737500
Vala crash when nested class/struct uses the generic from outer scope
Last modified: 2018-02-17 15:40:04 UTC
class Foo<G> { class Bar { G foobar; } } Instead of error crashes vala: test.vala:3.9-3.16: warning: field `Foo.Bar.foobar' never used G foobar; ^^^^^^^^ ** ERROR:valasemanticanalyzer.c:5672:vala_semantic_analyzer_get_actual_type: assertion failed: (instance_type != null)
This does not crash for me with current vala. The following does however: class Foo<G> { class Bar { public G foobar; } void foo (G foobar) { var bar = new Bar(); bar.foobar = foobar; } } $ valac e.vala ** ERROR:valasemanticanalyzer.c:5675:vala_semantic_analyzer_get_actual_type: assertion failed: (instance_type != null) zsh: abort (core dumped) valac e.vala
*** This bug has been marked as a duplicate of bug 587905 ***