-
Notifications
You must be signed in to change notification settings - Fork 88
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
Add support for annotation and interface merging #1119
Conversation
682eaaf
to
32cf177
Compare
7399601
to
dfa6791
Compare
compiler-k2/build.gradle.kts
Outdated
kotlinCompilerArgs.addAll( | ||
// The flag is needed because we extend an interface that uses @JvmDefault and the Kotlin | ||
// compiler requires this flag when doing so. | ||
"-Xjvm-default=all", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this actually needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it's not 👍, removed
val newModulesText = when { | ||
oldModulesArg == null -> "modules = [$classArgList]" | ||
existingModuleArgExpressions.isEmpty() -> "modules = [$classArgList]" | ||
else -> "modules = [$classArgList]" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I first wrote this, it actually did different things for different conditions. Now, it seems decidedly less useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Updated to be a direct assignment
dfa6791
to
8d67335
Compare
8d67335
to
39500f2
Compare
This continues the work started in rick/main-k2-merging-pt-2 which gets us baseline merging support for @MergeComponent.