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 /tests | |
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 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/objects/bug768823.test | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 3d264a65b..23a46332c 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -166,6 +166,7 @@ TESTS = \ objects/bug702846.vala \ objects/bug751338.vala \ objects/bug767092.test \ + objects/bug768823.test \ errors/errors.vala \ errors/bug567181.vala \ errors/bug579101.vala \ diff --git a/tests/objects/bug768823.test b/tests/objects/bug768823.test new file mode 100644 index 000000000..5fd4bbb9c --- /dev/null +++ b/tests/objects/bug768823.test @@ -0,0 +1,11 @@ +Invalid Code + +abstract class Foo<T> { + public abstract T t (); +} + +class Bar<V, U> : Foo<U> { + public override V t () { + return null; + } +} |