propensive / contextual

Statically-checked string interpolation in Scala
https://soundness.dev/contextual/
251 stars 23 forks source link

Use Module instead of ModuleClass to find the interpolatorTerm #64

Closed RustedBones closed 3 years ago

RustedBones commented 3 years ago

Related to #62

weakTypeOf[I] returns the ModuleClass which does not have an associated term.

Use the trick found here to access the module and use its associated term symbol.

propensive commented 3 years ago

This looks like it is a much less hacky solution than what I implemented! Thank you. :) I'll put this into a 3.0.1 release soon.