You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//>usingscala"3.1.1"//>usinglib"org.parboiled::parboiled:2.4.0"importorg.parboiled2.ParsertraitTestParser { this:Parser=>valfun= (x: Int) => x
deftestRule= rule {
push(1) ~> fun
}
}
throws an exception
[error] ./parboiled-debug/src/main/scala/org/parboiled/Debug.scala:9:18:Exception occurred while executing macro expansion.
[error] scala.MatchError:Select(This(Ident(TestParser)),fun) (of classdotty.tools.dotc.ast.Trees$Select)
[error] at org.parboiled2.support.OpTreeContext.org$parboiled2$support$OpTreeContext$$expandLambda(OpTreeContext.scala:412)
[error] at org.parboiled2.support.OpTreeContext$Action.renderInner(OpTreeContext.scala:419)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.inline$renderInner(OpTreeContext.scala:46)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.render$$anonfun$1(OpTreeContext.scala:39)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.render$$anonfun$adapted$1(OpTreeContext.scala:40)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:81)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1430)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1426)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1410)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.quoted.PickledQuotes$.spliceTerms(PickledQuotes.scala:121)
[error] at dotty.tools.dotc.quoted.PickledQuotes$.unpickleTerm(PickledQuotes.scala:60)
[error] at scala.quoted.runtime.impl.QuotesImpl.unpickleExpr(QuotesImpl.scala:2973)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.render(OpTreeContext.scala:40)
[error] at org.parboiled2.support.OpTreeContext.org$parboiled2$support$OpTreeContext$Sequence$$_$renderInner$$anonfun$1(OpTreeContext.scala:90)
[error] at scala.collection.immutable.List.map(List.scala:250)
[error] at scala.collection.immutable.List.map(List.scala:79)
[error] at org.parboiled2.support.OpTreeContext$Sequence.renderInner(OpTreeContext.scala:90)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.inline$renderInner(OpTreeContext.scala:46)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.render$$anonfun$1(OpTreeContext.scala:39)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.render$$anonfun$adapted$1(OpTreeContext.scala:40)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:81)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1430)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1426)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1410)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.quoted.PickledQuotes$.spliceTerms(PickledQuotes.scala:121)
[error] at dotty.tools.dotc.quoted.PickledQuotes$.unpickleTerm(PickledQuotes.scala:60)
[error] at scala.quoted.runtime.impl.QuotesImpl.unpickleExpr(QuotesImpl.scala:2973)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.render(OpTreeContext.scala:40)
[error] at org.parboiled2.support.OpTreeContext$RuleCall.renderInner(OpTreeContext.scala:538)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.inline$renderInner(OpTreeContext.scala:46)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.render$$anonfun$1(OpTreeContext.scala:39)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.render$$anonfun$adapted$1(OpTreeContext.scala:40)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:81)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1430)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1426)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1410)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.quoted.PickledQuotes$.spliceTerms(PickledQuotes.scala:121)
[error] at dotty.tools.dotc.quoted.PickledQuotes$.unpickleTerm(PickledQuotes.scala:60)
[error] at scala.quoted.runtime.impl.QuotesImpl.unpickleExpr(QuotesImpl.scala:2973)
[error] at org.parboiled2.support.OpTreeContext$NonTerminalOpTree.render(OpTreeContext.scala:40)
[error] at org.parboiled2.support.OpTreeContext$RuleCall.render(OpTreeContext.scala:533)
[error] at org.parboiled2.ParserMacros$.nameRuleImpl$$anonfun$2(ParserMacros.scala:139)
[error] at org.parboiled2.ParserMacros$.nameRuleImpl$$anonfun$adapted$2(ParserMacros.scala:142)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:81)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1430)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1469)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform$$anonfun$1(Trees.scala:1500)
[error] at scala.collection.immutable.List.mapConserve(List.scala:472)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1500)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transformStats(Trees.scala:1498)
[error] at dotty.tools.dotc.ast.Trees$Instance$TreeMap.transform(Trees.scala:1410)
[error] at dotty.tools.dotc.quoted.PickledQuotes$$anon$1.transform(PickledQuotes.scala:106)
[error] at dotty.tools.dotc.quoted.PickledQuotes$.spliceTerms(PickledQuotes.scala:121)
[error] at dotty.tools.dotc.quoted.PickledQuotes$.unpickleTerm(PickledQuotes.scala:60)
[error] at scala.quoted.runtime.impl.QuotesImpl.unpickleExpr(QuotesImpl.scala:2973)
[error] at org.parboiled2.ParserMacros$.nameRuleImpl(ParserMacros.scala:142)
[error] at org.parboiled2.ParserMacros$.ruleImpl(ParserMacros.scala:127)
[error]
The text was updated successfully, but these errors were encountered:
Trying to compile
throws an exception
The text was updated successfully, but these errors were encountered: