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
//>usingscala2.13.12//>usingdeporg.scalamock::scalamock:5.2.0//>usingdeporg.scalatest::scalatest:3.2.17//>usingoptions-Vprint:typertraitA1traitA2traitA {
deff(x: Int)(implicita1: A1, a2: A2=newA2 {})
}
importorg.scalamock.scalatest.MockFactorytraitTestextendsMockFactory {
valaMock= mock[A]
(aMock.f(_: Int)(_: A1)).expects(*, *) // here is a bug, A2 should be passed too
}
Please describe the expected behavior of the issue
Compilation fails with message, that A2 should be passed too.
Please provide a description of what actually happens
ScalaMock Version (e.g. 3.5.0)
5.2.0
Scala Version (e.g. 2.12)
2.13.12
Runtime (JVM or JS)
JVM
Reproducible Test Case
File for scala-cli:
Please describe the expected behavior of the issue
Compilation fails with message, that A2 should be passed too.
Please provide a description of what actually happens
Compilation fails with unhelpful message:
Original issue: scala/bug#12924
The text was updated successfully, but these errors were encountered: