method refs: return type check fix for raw constructor (IDEA-142302)

This commit is contained in:
Anna Kozlova
2015-07-06 17:37:31 +03:00
parent 92009c3336
commit 024f917277
2 changed files with 2 additions and 2 deletions
@@ -5,7 +5,7 @@ class Test<T> {
}
{
Callable<Test<String>> c = <error descr="Bad return type in method reference: cannot convert Test to Test<java.lang.String>">Test::<String>new</error>;
Callable<Test<String>> c = <error descr="Raw constructor reference with explicit type parameters for constructor">Test::<String>new</error>;
Callable<Test<String>> c1 = Test<String>::<String>new;
}
}