Given a preview enabled Java 23 compliance and the following source, completion at / here / can provide options for primitives as well.
public class X {
public static byte foo(byte b) {
if (b instanceof **/* here */by**) {
return b;
}
return -1;
}
public static void main(String[] args) {
byte b = 1;
System.out.println(X.foo(b));
}
}
Given a preview enabled Java 23 compliance and the following source, completion at / here / can provide options for primitives as well.