Open kasiaMarek opened 2 weeks ago
Hi,
Just adding some further info from the original issue.
Thinking about it, this can be further minimized, as this has nothing to do with Selectable
. Apparently just being a transparent
inline with class loading is enough to trigger this behavior:
object LoadStuff:
transparent inline def make: Unit = ${ makeImpl }
private def makeImpl(using Quotes): Expr[Unit] =
Class.forName("org.h2.Driver")
'{()}
This too triggers a loss of type-information at the call-site of make
.
Removing transparent
brings back type information.
Thanks
Original issue: https://github.com/scalameta/metals/issues/6494
Compiler version
3.4.2
Minimized code
Output
Interactive compiler reports error diagnostics:
Expectation
Should compile fine and diagnostics should be empty.