>From 42b83d4fe6a21e229c571cff52def007b46aa78b Mon Sep 17 00:00:00 2001 From: Matthias Berndt Date: Mon, 16 May 2016 12:21:06 +0200 Subject: [PATCH 2/3] check type parameters recursively This fixes error checking for code like this: class Foo {} void main(string[] args) { Foo > foo = null; } --- vala/valaobjecttype.vala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vala/valaobjecttype.vala b/vala/valaobjecttype.vala index 7019719..3d79edd 100644 --- a/vala/valaobjecttype.vala +++ b/vala/valaobjecttype.vala @@ -109,6 +109,11 @@ public class Vala.ObjectType : ReferenceType { return false; } + foreach (DataType type in get_type_arguments ()) { + if (! type.check (context)) + return false; + } + return true; } } -- 2.5.5