< prev index next >

test/langtools/tools/javac/generics/inference/CaptureLowerBoundDeref.java

Print this page
*** 17,8 ***
      interface K<T> { void take(T arg); }
  
      <T> K<T> m(I<? extends T> arg) { return null; }
  
      void test(Wrapper<?> w) {
!         m(w.get()).take(new Object());
      }
  }
--- 17,8 ---
      interface K<T> { void take(T arg); }
  
      <T> K<T> m(I<? extends T> arg) { return null; }
  
      void test(Wrapper<?> w) {
!         m(w.get()).take(new Object() {});
      }
  }
< prev index next >