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

Improve type inferencing for Spock expect block #917

Closed
eric-milles opened this issue Jun 24, 2019 · 0 comments
Closed

Improve type inferencing for Spock expect block #917

eric-milles opened this issue Jun 24, 2019 · 0 comments
Assignees
Milestone

Comments

@eric-milles
Copy link
Member

Consider the following:

class Foo {
  String bar
}
final class FooTest exteds spock.lang.Specification {
  void 'test case'() {
   given:
    Foo foo = new Foo(bar: 42)
   expect:
    foo.bar == 42
  }
}

If the Spock global transform is enabled (soon it will always be enabled: #814), "bar" is showing as unknown (underlined).

@eric-milles eric-milles self-assigned this Jun 24, 2019
@eric-milles eric-milles added this to the v3.4.0 milestone Jun 24, 2019
@eric-milles eric-milles changed the title Fix type inferencing for Spock expect block Improve type inferencing for Spock expect block Jun 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant