-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 failed: duplicate attachment for key dotty.tools.dotc.util.Property$Key@60f8c36 #13218
Comments
It tends to crash on any compilation error, e.g. |
Can we get a self contained example of this? Then I would take a look. |
smaller code to reproduce the issue: class TagTest extends AnyFreeSpec:
"a" - {
"b" in {
class TF[F[_]]
meow
}
} Unfortunately scalatest is essential dependency |
Can you make a mock of AnyFreeSpec with the I am afraid I personally won't have time to reproduce or fix tests with external dependencies. |
I was afraid it is related to scalatest macros but it isn't. Here is isolated example: class TagTest extends AnyFreeSpec:
"a" - {
"b" in {
class TF[F[_]]
meow
}
}
trait AnyFreeSpec:
protected class Wrapper(s: String):
def -(f: => Unit): Unit = ???
def in(f: => Unit): Unit = ???
implicit def wrap(s: String): Wrapper = ???
|
@scf37 thanks for minimizing it! |
Fixes scala#13218 The test shows that there are situations where an error is reported in a different context than where the assertion is tested.
Fixes scala#13218 The test shows that there are situations where an error is reported in a different context than where the assertion is tested.
Compiler version
3.0.1
Minimized code
Output (click arrow to expand)
The text was updated successfully, but these errors were encountered: