test/langtools/tools/javac/lambda/deduplication/Deduplication.java
changeset 59285 7799a51dbe30
parent 55306 ea43db53de91
--- a/test/langtools/tools/javac/lambda/deduplication/Deduplication.java	Mon Sep 09 11:43:16 2019 -0400
+++ b/test/langtools/tools/javac/lambda/deduplication/Deduplication.java	Wed Nov 27 09:00:01 2019 +0100
@@ -163,6 +163,9 @@
 
         group((Function<Integer, Integer>) x -> switch (x) { default: yield x; },
               (Function<Integer, Integer>) x -> switch (x) { default: yield x; });
+
+        group((Function<Object, Integer>) x -> x instanceof Integer i ? i : -1,
+              (Function<Object, Integer>) x -> x instanceof Integer i ? i : -1);
     }
 
     void f() {}