File tree Expand file tree Collapse file tree 12 files changed +48
-16
lines changed
compiler/src/dotty/tools/dotc/core Expand file tree Collapse file tree 12 files changed +48
-16
lines changed Original file line number Diff line number Diff line change @@ -2720,7 +2720,7 @@ object SymDenotations {
27202720 || owner.isRefinementClass
27212721 || owner.is(Scala2x )
27222722 || owner.unforcedDecls.contains(denot.name, denot.symbol)
2723- || (denot.is(Synthetic ) && denot.is(ModuleClass ) && stillValidInOwner(denot.companionClass))
2723+ || (denot.is(Synthetic ) && denot.is(ModuleClass ) && denot.companionClass.exists && stillValidInOwner(denot.companionClass))
27242724 || denot.isSelfSym
27252725 || denot.isLocalDummy)
27262726 catch case ex : StaleSymbol => false
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ trait Conversions :
2+ given conv (using DFBits .Candidate ): Conversion [Int , DFVal ] = ???
3+
4+ import scala .quoted .*
5+ transparent inline def f : Short = $ { getWidthMacro }
6+ private def getWidthMacro (using Quotes ): Expr [Short ] = ' { ??? }
Original file line number Diff line number Diff line change 1+ type DFBits = Long
2+ object DFBits :
3+ def a : Unit = f // forces suspension of this compilation unit in typer
4+ def b : DFVal = 2 // uses implicit conversion `DFVal.conv`
5+
6+ trait Candidate
7+ object Candidate :
8+ given candidate : Candidate = ??? // completed in run 3 but created in run 2
9+ end DFBits
10+
11+ trait DFVal
12+ object DFVal extends Conversions
Original file line number Diff line number Diff line change 1+ import outer ._
2+ trait Conversions :
3+ given conv (using DFBits .Candidate ): Conversion [Int , DFVal ] = ???
4+
5+ import scala .quoted .*
6+ transparent inline def f : Short = $ { getWidthMacro }
7+ private def getWidthMacro (using Quotes ): Expr [Short ] = ' { ??? }
Original file line number Diff line number Diff line change 1+ type outer = Int
2+ object outer :
3+ type DFBits = Long
4+ object DFBits :
5+ def a : Unit = f // forces suspension of this compilation unit in typer
6+ def b : DFVal = 2 // uses implicit conversion `DFVal.conv`
7+
8+ trait Candidate
9+ object Candidate :
10+ given candidate : Candidate = ??? // completed in run 3 but created in run 2
11+ end DFBits
12+
13+ trait DFVal
14+ object DFVal extends Conversions
Original file line number Diff line number Diff line change 1+ // object A:
2+ val x : Int = 1
3+ inline def myMacro (): x.type = $ {myMacroExpr}
4+ def test = myMacro()
5+
6+ @ main def main () = ()
Original file line number Diff line number Diff line change 11import scala .quoted .*
2- // import A.*
2+ // import A.*
33def myMacroExpr (using Quotes ): Expr [x.type ] = ' {??? }
You can’t perform that action at this time.
0 commit comments