Skip to content

Commit 8f67d07

Browse files
committed
Split promotion extension and accessLocal
1 parent 0bafae2 commit 8f67d07

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -766,7 +766,6 @@ object Semantic {
766766
end extension
767767

768768
extension (ref: Ref)
769-
770769
def accessLocal(tmref: TermRef, klass: ClassSymbol, source: Tree): Contextual[Result] =
771770
val sym = tmref.symbol
772771

@@ -810,7 +809,10 @@ object Semantic {
810809

811810
case _ => default()
812811
}
813-
// ----- Promotion ----------------------------------------------------
812+
end extension
813+
814+
// ----- Promotion ----------------------------------------------------
815+
extension (ref: Ref)
814816
/** Whether the object is fully assigned
815817
*
816818
* It means all fields and outers are set. For performance, we don't check

0 commit comments

Comments
 (0)