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

Unresolved reference for nested message used in other top-level message #126

Closed
andrewparmet opened this issue Sep 9, 2021 · 0 comments · Fixed by #143
Closed

Unresolved reference for nested message used in other top-level message #126

andrewparmet opened this issue Sep 9, 2021 · 0 comments · Fixed by #143

Comments

@andrewparmet
Copy link
Collaborator

This is valid protobuf but protokt's generated code fails to compile:

message Foo {
  message Bar {}
}

message Baz {
  Foo.Bar bar = 1;
}
class Baz
private constructor(
    val bar: Bar?,
    val unknownFields: UnknownFieldSet = UnknownFieldSet.empty()
) : KtMessage {

needs to become:

class Baz
private constructor(
    val bar: Foo.Bar?,
    val unknownFields: UnknownFieldSet = UnknownFieldSet.empty()
) : KtMessage {
@andrewparmet andrewparmet changed the title Unresolved import for nested message used in other top-level message Unresolved reference for nested message used in other top-level message Sep 9, 2021
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

Successfully merging a pull request may close this issue.

1 participant