java: prohibit caching when using thread-local types imposed on expressions and declarations in complex nested inference scenarios

GitOrigin-RevId: a767826dedb5d1879009ee5804e1c675d1b863ac
This commit is contained in:
peter
2019-05-27 09:04:05 +03:00
committed by intellij-monorepo-bot
parent a086de2ef0
commit 000ccd1dbc
13 changed files with 120 additions and 115 deletions
@@ -1,6 +1,6 @@
class IntStream {
private void foo(IntStream s) {
s.<error descr="Ambiguous method call: both 'IntStream.map(IntUnaryOperator)' and 'IntStream.map(ObjIntFunction<Object>)' match">map</error>(i -> 1 << i);
s.<error descr="Ambiguous method call: both 'IntStream.map(IntUnaryOperator)' and 'IntStream.map(ObjIntFunction<Object>)' match">map</error>(i -> <error descr="Operator '<<' cannot be applied to 'int', '<lambda parameter>'">1 << i</error>);
s.<error descr="Ambiguous method call: both 'IntStream.map(IntUnaryOperator)' and 'IntStream.map(ObjIntFunction<Object>)' match">map</error>(i -> 1);
s.<error descr="Ambiguous method call: both 'IntStream.map(IntUnaryOperator)' and 'IntStream.map(ObjIntFunction<Object>)' match">map</error>(i -> i);
}