Tests were run from neovim, the exact error message might be different from other editors. I tried with merlin on the command line (command `type-enclosing`) and got the expected result (the type of the method). --- PS: ocamllsp v1.23.0 on ocaml 5.3.0