Skip to content

Drop MethodOrHKCommon, ensure HigherKinded is properly labeled #4254

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
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
8 changes: 4 additions & 4 deletions compiler/src/dotty/tools/dotc/core/Flags.scala
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,8 @@ object Flags {
final val Final = commonFlag(6, "final")

/** A method symbol. */
final val MethodOrHKCommon = commonFlag(7, "<method>")
final val Method = MethodOrHKCommon.toTermFlags
final val HigherKinded = MethodOrHKCommon.toTypeFlags
final val Method = termFlag(7, "<method>")
final val HigherKinded = typeFlag(7, "<higher kinded>")

/** A (term or type) parameter to a class or method */
final val Param = commonFlag(8, "<param>")
Expand Down Expand Up @@ -456,7 +455,8 @@ object Flags {

/** Flags guaranteed to be set upon symbol creation */
final val FromStartFlags =
Module | Package | Deferred | MethodOrHKCommon | Param | ParamAccessor.toCommonFlags |
Module | Package | Deferred | Method.toCommonFlags |
HigherKinded.toCommonFlags | Param | ParamAccessor.toCommonFlags |
Scala2ExistentialCommon | Mutable.toCommonFlags | Touched | JavaStatic |
CovariantOrOuter | ContravariantOrLabel | CaseAccessor.toCommonFlags |
NonMember | Erroneous | ImplicitCommon | Permanent | Synthetic |
Expand Down