langtools/test/tools/javac/lambda/8153884/T8153884.java
changeset 38508 03c87ceca5fd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/langtools/test/tools/javac/lambda/8153884/T8153884.java	Mon May 16 13:05:42 2016 +0100
@@ -0,0 +1,14 @@
+/*
+ * @test /nodynamiccopyright/
+ * @bug 8153884
+ * @summary Expression lambda erroneously compatible with void-returning descriptor
+ * @compile/fail/ref=T8153884.out -XDrawDiagnostics T8153884.java
+ */
+
+class T8153884 {
+    void test() {
+        Runnable r = () -> (foo());
+    }
+
+    void foo() { }
+}