Skip to content

Avoid cycle with F-bounded inner Java class #13341

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

Merged
merged 1 commit into from
Aug 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1061,6 +1061,8 @@ class ClassfileParser(
}
else if (sym == classRoot.symbol)
instanceScope.lookup(name)
else if (sym == classRoot.symbol.owner && name == classRoot.name)
classRoot.symbol
else
sym.info.member(name).symbol

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
abstract class AbstractConfigurer {
abstract class AbstractRegistry<R extends AbstractRegistry<R>> {}
}

public final class Configurer_1 extends AbstractConfigurer {
public final class Registry extends AbstractRegistry<Registry> {}
public Registry registry() { return null; }
}
2 changes: 2 additions & 0 deletions tests/pos-java-interop-separate/inner-fbounds/Test_2.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
object Test:
def registry(cfg: Configurer_1) = cfg.registry