We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
With arrow 1.2.3 on Kotlin 1.9.23 and ksp 1.0.19 the following declaration causes bad code to be generated:
1.2.3
1.9.23
1.0.19
@optics data class Box<S>(val s: S) { companion object }
producing:
public inline fun <S,S> arrow.optics.Iso<S, Box<S>>.s(): arrow.optics.Lens<S, S> = this + Box.s() public inline fun <S,S> arrow.optics.Lens<S, Box<S>>.s(): arrow.optics.Lens<S, S> = this + Box.s() public inline fun <S,S> arrow.optics.Optional<S, Box<S>>.s(): arrow.optics.Optional<S, S> = this + Box.s() public inline fun <S,S> arrow.optics.Prism<S, Box<S>>.s(): arrow.optics.Optional<S, S> = this + Box.s() public inline fun <S,S> arrow.optics.Getter<S, Box<S>>.s(): arrow.optics.Getter<S, S> = this + Box.s() public inline fun <S,S> arrow.optics.Setter<S, Box<S>>.s(): arrow.optics.Setter<S, S> = this + Box.s() public inline fun <S,S> arrow.optics.Traversal<S, Box<S>>.s(): arrow.optics.Traversal<S, S> = this + Box.s() public inline fun <S,S> arrow.optics.Fold<S, Box<S>>.s(): arrow.optics.Fold<S, S> = this + Box.s() public inline fun <S,S> arrow.optics.Every<S, Box<S>>.s(): arrow.optics.Every<S, S> = this + Box.s()
which naturally fails to compile due to the duplicate declarations of the type variable S.
S
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
With arrow
1.2.3
on Kotlin1.9.23
and ksp1.0.19
the following declaration causes bad code to be generated:producing:
which naturally fails to compile due to the duplicate declarations of the type variable
S
.The text was updated successfully, but these errors were encountered: