Skip to content

1.018

Compare
Choose a tag to compare
@h908714124 h908714124 released this 03 Dec 14:08
· 42 commits to main since this release
7cd9740

If defined in the same source file, allow static binding method to be a sibling of the class it provides.

For example: Consider a static binding method inside a nested class A:

class Outer {
  static class A {
    @Inject static A createA() { return new A(); }
  }
}

We can now choose to define createA directly in Outer:

class Outer {
  static class A {}
  @Inject static A createA() { return new A(); }
}