Skip to content

Commit 6eb78e8

Browse files
committed
Only allow to set uniqueId from positioned
1 parent 832b140 commit 6eb78e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Positioned.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ abstract class Positioned(implicit @constructorOnly src: SourceFile) extends Pro
2323
*/
2424
def uniqueId: Int = myUniqueId
2525

26-
def uniqueId_=(id: Int): Unit = {
26+
private def uniqueId_=(id: Int): Unit = {
2727
//assert(id != 2523, this)
2828
myUniqueId = id
2929
}

0 commit comments

Comments
 (0)