Commit 9e06553b authored by Artemiy Sartakov's avatar Artemiy Sartakov Committed by Artemiy Sartakov
Browse files

IDEA-202665 added tests for super method resolve order

parent c4eda30c
Branches unavailable Tags unavailable
No related merge requests found
Showing with 52 additions and 0 deletions
+52 -0
<html><head><base href="placeholder"></head><body><div class='definition'><pre><a href="psi_element://Test"><code>Test&lt;E extends <a href="psi_element://java.lang.Number"><code>Number</code></a>&gt;</code></a><br>E&nbsp;<b>remove</b>(<a href="psi_element://java.lang.Integer"><code>Integer</code></a>&nbsp;idx)</pre></div><table class='sections'><p><tr><td valign='top' class='section'><p>See Also:</td><td valign='top'><p><a href="psi_element://TestImpl#remove(java.lang.Number)"><code>TestImpl.remove(Number)</code></a></td></table>
\ No newline at end of file
public interface Test<E extends Number> {
boolean remove(E e);
/**
* @see TestImpl#remove(Number)
*/
E remove<caret>(Integer idx);
}
public class TestImpl<E extends Number> implements Test<E> {
@Override
public boolean remove(E e) {
return false;
}
@Override
public E remove(Integer idx) {
return null;
}
}
\ No newline at end of file
<html><head><base href="placeholder"></head><body><div class='definition'><pre><a href="psi_element://Test"><code>Test&lt;E&gt;</code></a><br>E&nbsp;<b>remove</b>(int&nbsp;idx)</pre></div><table class='sections'><p><tr><td valign='top' class='section'><p>See Also:</td><td valign='top'><p><a href="psi_element://TestImpl#remove(int)"><code>TestImpl.remove(int)</code></a></td></table>
\ No newline at end of file
public interface Test<E> {
boolean remove(Object o);
/** @see TestImpl#remove(int) */
E remove<caret>(int idx);
}
public class TestImpl<E> implements Test<E> {
@Override
public boolean remove(Object o) {
return false;
}
@Override
public E remove(int idx) {
return null;
}
}
\ No newline at end of file
......@@ -466,6 +466,14 @@ public class JavaDocInfoGeneratorTest extends CodeInsightTestCase {
doTestClass();
}
public void testSuperJavadocExactResolve() throws Exception {
doTestAtCaret();
}
public void testSuperJavadocErasureResolve() throws Exception {
doTestAtCaret();
}
@Override
protected String getTestDataPath() {
return JavaTestUtil.getJavaTestDataPath();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment