forked from ringcentral/spock
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Spock destroys method disambiguation completely #1022
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given this in a Java class:
and this in a Spock specification:
If you then do in the Java class
all works well and four times
String
is printed.Now we add to the Spock specification these tests:
And we surprisingly find that all of them fail.
Some I actually would expect to fail.
foo7
andfoo8
are expected to fail, because they even fail in a plain Groovy console.But
foo9
andfoo10
should work fine for example.The text was updated successfully, but these errors were encountered: