Skip to content

Commit 58c94f6

Browse files
committed
Use a delegate for FlagSet extension methods
1 parent 8b2f9a5 commit 58c94f6

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

compiler/src/dotty/tools/dotc/core/Flags.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ object Flags {
1919
type FlagSet = opaques.FlagSet
2020
def FlagSet(bits: Long): FlagSet = opaques.FlagSet(bits)
2121

22-
implicit object FlagOps {
22+
delegate FlagOps {
2323

2424
def (xs: FlagSet) bits: Long = opaques.toBits(xs)
2525

compiler/src/dotty/tools/dotc/tastyreflect/KernelImpl.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ import dotty.tools.dotc.util.SourceFile
1717

1818
import scala.tasty.reflect.Kernel
1919

20+
import delegate Flags.FlagOps // DOTTY problem: this should not be needed as we should include prefixes of aliases in implicit scopes
21+
2022
class KernelImpl(val rootContext: core.Contexts.Context, val rootPosition: util.SourcePosition) extends Kernel {
2123

2224
private implicit def ctx: core.Contexts.Context = rootContext

compiler/src/dotty/tools/dotc/typer/Variances.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package typer
33

44
import core._
55
import Types._, Contexts._, Flags._, Symbols._, Annotations._
6+
import delegate Flags.FlagOps // DOTTY problem: this should not be needed as we should include prefixes of aliases in implicit scopes
67

78
object Variances {
89

0 commit comments

Comments
 (0)