This fixes error checking for code like this:
class Foo<T> {}
void main(string[] args) {
Foo<Foo<string, string>> foo = null;
}
Fixes bug 767092.
objects/bug702736.vala \
objects/bug702846.vala \
objects/bug751338.vala \
+ objects/bug767092.test \
errors/errors.vala \
errors/bug567181.vala \
errors/bug579101.vala \
--- /dev/null
+Invalid Code
+
+class Foo<T> {
+}
+
+void main(string[] args) {
+ Foo<Foo<string, string>> foo = null;
+}
return false;
}
+ foreach (DataType type in get_type_arguments ()) {
+ if (!type.check (context)) {
+ return false;
+ }
+ }
+
return true;
}
}