Skip to content

Commit

Permalink
Split promotion extension and accessLocal
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukagami committed Nov 9, 2021
1 parent 0bafae2 commit 8f67d07
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compiler/src/dotty/tools/dotc/transform/init/Semantic.scala
Expand Up @@ -766,7 +766,6 @@ object Semantic {
end extension

extension (ref: Ref)

def accessLocal(tmref: TermRef, klass: ClassSymbol, source: Tree): Contextual[Result] =
val sym = tmref.symbol

Expand Down Expand Up @@ -810,7 +809,10 @@ object Semantic {

case _ => default()
}
// ----- Promotion ----------------------------------------------------
end extension

// ----- Promotion ----------------------------------------------------
extension (ref: Ref)
/** Whether the object is fully assigned
*
* It means all fields and outers are set. For performance, we don't check
Expand Down

0 comments on commit 8f67d07

Please sign in to comment.