The first example gives the correct result: any. The next two examples miss that the return type of getVal() is any (which is itself correctly determined), and declare the type of the local is 10. The ...
JDK: JetBrains s.r.o. 21.0.8 Plugin version: 3.95.0-2025.2 ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results