fix exception on unboxing captured wildcard of numeric type

GitOrigin-RevId: 6fb5c3ed9b1225d4224c8c543221d12412718114
This commit is contained in:
Alexey Kudravtsev
2020-03-10 13:32:01 +00:00
committed by intellij-monorepo-bot
parent 29e3a57092
commit 295a9bc984
3 changed files with 15 additions and 3 deletions
@@ -0,0 +1,11 @@
import java.util.*;
import java.io.*;
class X {
public void save(Collection<? extends Long> value) throws IOException {
assert value.isEmpty() || value.size() == 1;
writeLONG(value.isEmpty() ? 0 : value.iterator().next());
}
public static void writeLONG(long val) throws IOException {
}
}