New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assertion failure in isAnonymousOrLocalClass #8900
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8900?orig=1
|
Tony Sloane (asloane) said:
The log mentions |
Tony Sloane (asloane) said: |
@gkossakowski said: |
@Sciss said: |
@lrytz said: package org.kiama
package example.lambda2
import org.kiama.util.RegexParserTests
import scala.language.experimental.macros
class LambdaTests {
import org.kiama.rewriting.Strategy
def rule[T] (f : PartialFunction[T, T]) : Strategy = ???
case class Var(x: Int)
def canon = {
def canons: Strategy = rule[Var] { case Var (n) => Var (n) } + canons
}
} The fishy thing is that However, the implementation of final def isAnonymousFunction = isSynthetic && (name containsName tpnme.ANON_FUN_NAME)
final def isDelambdafyFunction = isSynthetic && (name containsName tpnme.DELAMBDAFY_LAMBDA_CLASS_NAME) So an |
@lrytz said: |
Tony Sloane (asloane) said: |
@gkossakowski said: |
Tony Sloane (asloane) said: |
@gkossakowski said: |
@sjrd said: In the case of Scala.js, I can tell you that it's not generated by a macro, because there's no macro in the Scala.js repository. The failing project is the test suite, which is not compiled with |
Tony Sloane (asloane) said: |
Tony Sloane (asloane) said: |
@gkossakowski said (edited on Oct 20, 2014 12:50:21 PM UTC): Here's link to PR that fixes the original issue reported in this ticket: scala/scala#4049 |
When using the 2.11.3 version that is currently on Maven Central or the most recent SNAPSHOT, I get an assertion failure when compiling the latest development version of our Kiama library. The build log is in the attached file, but the stack trace starts:
The text was updated successfully, but these errors were encountered: