GNOME Bugzilla – Bug 626778
Type checking for generics is too liberal
Last modified: 2010-08-12 20:55:11 UTC
Created attachment 167774 [details] a testcase The attached test-case, apart from containing way too many words "test", segfaults. The reason is that valac doesn't complain about passing Class<SomeClass> where Class<Object> is expected (or similarly any "safely-looking" parent class). The result is that the method may pass some other descendant of Object where SomeClass is expected, leading to a crash.
*** This bug has been marked as a duplicate of bug 615830 ***