Skip to content
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

support Scala 2.13.0-M4 #243

Closed
xuwei-k opened this issue Jul 25, 2018 · 0 comments · Fixed by #257
Closed

support Scala 2.13.0-M4 #243

xuwei-k opened this issue Jul 25, 2018 · 0 comments · Fixed by #257

Comments

@xuwei-k
Copy link
Contributor

xuwei-k commented Jul 25, 2018

ScalaMock Version

latest master

Scala Version

2.13.0-M4

Runtime

JVM and JS

Please describe the expected behavior of the issue

Please provide a description of what actually happens

almost done

but I have found an issue.

[error] /home/travis/build/xuwei-k/ScalaMock/shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala:50:25: polymorphic expression cannot be instantiated to expected type;
[error]  found   : [T](x: List[T])String
[error]  required: org.scalamock.function.MockFunction
[error]     getMockMethodName(m.polymorphic _) shouldBe "<mock> TestTrait.polymorphic[T]"
[error]                         ^
[error] /home/travis/build/xuwei-k/ScalaMock/shared/src/test/scala/com/paulbutcher/test/mock/MockNamingTest.scala:50:25: polymorphic expression cannot be instantiated to expected type;
[error]  found   : [T](x: List[T])String
[error]  required: org.scalamock.function.MockFunction
[error]     getMockMethodName(m.polymorphic _) shouldBe "<mock> TestTrait.polymorphic[T]"
[error]                         ^

scala/bug#11039

I'm not sure scalac bug or by design change since Scala 2.13

Reproducible Test Case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant