This commit is contained in:
Anna Kozlova
2014-04-22 20:02:51 +02:00
parent 0da9f91eec
commit 7d74b9dcf1
3 changed files with 15 additions and 4 deletions
@@ -20,3 +20,16 @@ class Test {
<T> void foo(T t1, I<T> t3) {}
}
class Test2 {
interface F {
<X> <error descr="Invalid method declaration; return type required">m</error>();
}
void g() {}
{
F f = this::g;
}
}