diff options
author | Matthias Berndt <matthias_berndt@gmx.de> | 2016-07-14 23:45:51 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2016-07-15 05:21:23 +0200 |
commit | 97de315bb903014975347949e513421599e76c9c (patch) | |
tree | edac096b4dd2e7cba7559f9d472226a926420dfe /vala/valatypeparameter.vala | |
parent | 49b634dee098989df0bd00a744b4d2974dca198f (diff) | |
download | vala-97de315bb903014975347949e513421599e76c9c.tar.gz |
Check type parameters when comparing types
Fix the broken implementation of TypeParameter.equals.
Fixes bug 768823.
Diffstat (limited to 'vala/valatypeparameter.vala')
-rw-r--r-- | vala/valatypeparameter.vala | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vala/valatypeparameter.vala b/vala/valatypeparameter.vala index 9912175a9..f875f304d 100644 --- a/vala/valatypeparameter.vala +++ b/vala/valatypeparameter.vala @@ -49,10 +49,6 @@ public class Vala.TypeParameter : Symbol { * 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; } } |