Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

-Ykind-projector does not support infix type #117

Closed
xuwei-k opened this issue May 9, 2020 · 2 comments
Closed

-Ykind-projector does not support infix type #117

xuwei-k opened this issue May 9, 2020 · 2 comments

Comments

@xuwei-k
Copy link

xuwei-k commented May 9, 2020

Minimized code

dotty version: 0.24.0-RC1, 0.25.0-bin-20200508-f5b1d79-NIGHTLY

scala> trait Functor[F[_]]
// defined trait Functor

scala> type EitherFunctor[A] = Functor[Either[A, *]]
// defined alias type EitherFunctor[A] = Functor[[_$1] =>> Either[A, _$1]]

scala> type EitherFunctor[A] = Functor[A Either *]
1 |type EitherFunctor[A] = Functor[A Either *]
  |                                         ^
  |                                         Not found: type *

Expectation

compile success

@smarter
Copy link
Member

smarter commented May 9, 2020

We provide -Ykind-projector to help with migration, but we don't plan to extend it ourselves to support more of its features. PRs to do so are welcome though, so I'll move this issue to the feature request repo.

@smarter smarter transferred this issue from scala/scala3 May 9, 2020
xuwei-k added a commit to scalaz/scalaz that referenced this issue May 16, 2020
xuwei-k added a commit to atnos-org/eff that referenced this issue Nov 30, 2020
xuwei-k added a commit to atnos-org/eff that referenced this issue Nov 30, 2020
@xuwei-k
Copy link
Author

xuwei-k commented Feb 16, 2022

FYI: created scalafix rule

xuwei-k/scalafix-rules@cde493f

@lampepfl lampepfl locked and limited conversation to collaborators Jun 5, 2023
@ckipp01 ckipp01 converted this issue into a discussion Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants