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

Regression: a field no longer satisfies a get/set method from a structural interface #380

Closed
rsmckinney opened this issue Jul 31, 2022 · 1 comment

Comments

@rsmckinney
Copy link
Member

Regression: a field no longer satisfies a get/set method from a structural interface.

This test fails:

  @Test
  public void testTupleCastToStructuralInterface() {
    auto t = (name: "Bear", age:100);
    MyStructuralIface iface = (MyStructuralIface)t;
    assertEquals("Bear", iface.getName());
    iface.setName("Bobcat" );
    assertEquals("Bobcat", iface.getName());
  }
  @Structural
  interface MyStructuralIface {
    String getName();
    void setName(String name);
  }
rsmckinney added a commit that referenced this issue Jul 31, 2022
- fix regression involving fields as structurally equivalent to get/set methods
@rsmckinney
Copy link
Member Author

Fix available with release 2022.1.19

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

No branches or pull requests

1 participant