Fix the broken implementation of TypeParameter.equals.
Fixes bug 768823.
objects/bug702846.vala \
objects/bug751338.vala \
objects/bug767092.test \
+ objects/bug768823.test \
errors/errors.vala \
errors/bug567181.vala \
errors/bug579101.vala \
--- /dev/null
+Invalid Code
+
+abstract class Foo<T> {
+ public abstract T t ();
+}
+
+class Bar<V, U> : Foo<U> {
+ public override V t () {
+ return null;
+ }
+}
* otherwise
*/
public bool equals (TypeParameter param2) {
- // FIXME check whether the corresponding data type of one of the
- // parameters is a base type of the corresponding data
- // type of the other parameter and check along the path
- // whether one parameter maps to the other
- return true;
+ return name == param2.name && parent_symbol == param2.parent_symbol;
}
}