View | Details | Raw Unified | Return to bug 99686 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/jdt/core/tests/model/CompletionTests_1_5.java (+24 lines)
Lines 7560-7563 Link Here
7560
			"",
7560
			"",
7561
			result.proposals);
7561
			result.proposals);
7562
}
7562
}
7563
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=99686
7564
	public void test0243() throws JavaModelException {
7565
		CompletionResult result = complete(
7566
			"/Completion/src3/test0243/X.java",
7567
			"package test0243;\n" + 
7568
			"public class X {\n" + 
7569
			"	void test() {\n" + 
7570
			"		foo(new Object() {}).b\n" + 
7571
			"	}\n" + 
7572
			"	<T> Y<T> foo(T t) {\n" + 
7573
			"		return null;\n" + 
7574
			"	}\n" + 
7575
			"}\n" + 
7576
			"class Y<T> {\n" + 
7577
			"	T bar() {\n" + 
7578
			"		return null;\n" + 
7579
			"	}\n" + 
7580
			"}",
7581
			"foo(new Object() {}).b");
7582
7583
		assertResults(
7584
			"bar[METHOD_REF]{bar(), Ltest0243.Y<LObject;>;, ()LObject;, bar, null, 29}", 
7585
			result.proposals);
7586
}
7563
}
7587
}

Return to bug 99686