mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 18:28:55 +07:00
new inference: String::length should be exact (IDEA-122191)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import java.util.function.ToIntFunction;
|
||||
class Test {
|
||||
{
|
||||
fooBar(String::length);
|
||||
}
|
||||
|
||||
class Foo<K> {
|
||||
Foo<K> then() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
static <T> Foo<T> fooBar(ToIntFunction<? super T> keyExtractor) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user