testdata for IDEA-153632

This commit is contained in:
Anna.Kozlova
2016-03-29 21:17:55 +02:00
parent 5926bc7fc5
commit d5613fae7f
2 changed files with 21 additions and 0 deletions
@@ -0,0 +1,17 @@
import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.Queue;
class Main {
public static void main(String[] args) {
Queue<Node> q = new PriorityQueue<>(Comparator.comparing(node -> node.n));
}
}
class Node {
final int n;
Node(int n) {
this.n = n;
}
}
@@ -414,6 +414,10 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
doTest();
}
public void testIDEA153632() throws Exception {
doTest();
}
public void testVariableNamesOfNestedCalls() throws Exception {
IdeaTestUtil.setTestVersion(JavaSdkVersion.JDK_1_8, getModule(), getTestRootDisposable());
String filePath = BASE_PATH + "/" + getTestName(false) + ".java";