Skip to content

Commit 2a033aa

Browse files
author
Aggelos Biboudis
authored
Merge pull request #6343 from dotty-staging/only-allow-to-set-unique-id-from-positioned
Only allow to set unique id from positioned
2 parents 56f05d8 + 4164ba2 commit 2a033aa

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,11 @@ abstract class Positioned(implicit @constructorOnly src: SourceFile) extends Pro
2323
*/
2424
def uniqueId: Int = myUniqueId
2525

26-
def uniqueId_=(id: Int): Unit = {
27-
//assert(id != 2523, this)
26+
private def uniqueId_=(id: Int): Unit = {
27+
// FOR DEBUGGING
28+
// assert(id != 2523, this)
29+
// if (id == 1234) new Throwable().printStackTrace()
30+
2831
myUniqueId = id
2932
}
3033

0 commit comments

Comments
 (0)