tek / splain

better implicit errors for scala
MIT License
370 stars 28 forks source link

Respect -Ymacro-annotations flag #31

Closed 4e6 closed 4 years ago

4e6 commented 4 years ago

closes #30

PR adjusts the analyzer, to match the Scala compiler definition:

https://github.com/scala/scala/blob/2.13.x/src/compiler/scala/tools/nsc/Global.scala#L481-L483

  lazy val analyzer =
    if (settings.YmacroAnnotations) new { val global: Global.this.type = Global.this } with Analyzer with MacroAnnotationNamers
    else new { val global: Global.this.type = Global.this } with Analyzer
tek commented 4 years ago

sounds good, thanks!

tek commented 4 years ago

0.5.1 is on its way!

4e6 commented 4 years ago

Awesome, thank you! :+1: