scala.meta.ParseException: ; expected but right arrow found at 9..11

GitHub | xeno-by | 1 year ago
  1. 0

    q"(i: Int) => 42" doesn't work

    GitHub | 1 year ago | xeno-by
    scala.meta.ParseException: ; expected but right arrow found at 9..11

    Root Cause Analysis

    1. scala.meta.ParseException

      ; expected but right arrow found at 9..11

      at scala.meta.internal.parsers.Reporter$class.syntaxError()
    2. scala.meta.internal
      Parser.parseStat
      1. scala.meta.internal.parsers.Reporter$class.syntaxError(Reporter.scala:13)
      2. scala.meta.internal.parsers.Reporter$$anon$1.syntaxError(Reporter.scala:19)
      3. scala.meta.internal.parsers.Reporter$class.syntaxError(Reporter.scala:14)
      4. scala.meta.internal.parsers.Reporter$$anon$1.syntaxError(Reporter.scala:19)
      5. scala.meta.internal.parsers.Parser.syntaxErrorExpected(Parsers.scala:478)
      6. scala.meta.internal.parsers.Parser.accept(Parsers.scala:484)
      7. scala.meta.internal.parsers.Parser.acceptStatSep(Parsers.scala:497)
      8. scala.meta.internal.parsers.Parser.acceptStatSepOpt(Parsers.scala:501)
      9. scala.meta.internal.parsers.Parser.statSeq(Parsers.scala:2699)
      10. scala.meta.internal.parsers.Parser$$anonfun$parseStat$1.apply(Parsers.scala:46)
      11. scala.meta.internal.parsers.Parser$$anonfun$parseStat$1.apply(Parsers.scala:46)
      12. scala.meta.internal.parsers.Parser.parseRule(Parsers.scala:36)
      13. scala.meta.internal.parsers.Parser.parseStat(Parsers.scala:46)
      13 frames
    3. scala.meta.syntactic
      Api$XtensionInputLike.parse
      1. scala.meta.syntactic.Api$Parse$$anonfun$parseStat$1.apply(Api.scala:40)
      2. scala.meta.syntactic.Api$Parse$$anonfun$parseStat$1.apply(Api.scala:40)
      3. scala.meta.syntactic.Api$Parse$$anon$1.apply(Api.scala:39)
      4. scala.meta.syntactic.Api$Parse$$anon$1.apply(Api.scala:39)
      5. scala.meta.syntactic.Api$XtensionInputLike.parse(Api.scala:60)
      5 frames
    4. scala.meta.tools
      Metac$delayedInit$body.apply
      1. scala.meta.tools.Metac$.delayedEndpoint$scala$meta$tools$Metac$1(Metac.scala:106)
      2. scala.meta.tools.Metac$delayedInit$body.apply(Metac.scala:9)
      2 frames
    5. Scala
      App$class.main
      1. scala.Function0$class.apply$mcV$sp(Function0.scala:34)
      2. scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
      3. scala.App$$anonfun$main$1.apply(App.scala:76)
      4. scala.App$$anonfun$main$1.apply(App.scala:76)
      5. scala.collection.immutable.List.foreach(List.scala:381)
      6. scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:35)
      7. scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:45)
      8. scala.App$class.main(App.scala:76)
      8 frames
    6. scala.meta.tools
      Metac.main
      1. scala.meta.tools.Metac$.main(Metac.scala:9)
      2. scala.meta.tools.Metac.main(Metac.scala)
      2 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    8. Scala
      ScalaClassLoader$URLClassLoader.run
      1. scala.reflect.internal.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:70)
      2. scala.reflect.internal.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:31)
      3. scala.reflect.internal.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:101)
      4. scala.reflect.internal.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:70)
      5. scala.reflect.internal.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:101)
      5 frames
    9. Scala Compiler
      MainGenericRunner.main
      1. scala.tools.nsc.CommonRunner$class.run(ObjectRunner.scala:22)
      2. scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:39)
      3. scala.tools.nsc.CommonRunner$class.runAndCatch(ObjectRunner.scala:29)
      4. scala.tools.nsc.ObjectRunner$.runAndCatch(ObjectRunner.scala:39)
      5. scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:65)
      6. scala.tools.nsc.MainGenericRunner.run$1(MainGenericRunner.scala:87)
      7. scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:98)
      8. scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:103)
      9. scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
      9 frames