Open
Description
Compiler version
Scala compiler version 3.0.0-RC2-bin-SNAPSHOT-git-5abd9d9 -- Copyright 2002-2021, LAMP/EPFL
Minimized code
if sym.normalizedName contains "OnCompleteRunnable" then
println(s"${sym.pos.get.start} start")
println(s"${sym.pos.get.startColumn} startColumn")
println(s"${sym.pos.get.startLine} startLine")
println(s"${sym.pos.get.end} end")
println(s"${sym.pos.get.endColumn} endColumn")
println(s"${sym.pos.get.endLine} endLine")
println(s"${sym.pos.get.sourceFile} sourceFile")
println(s"${sym.pos.get.sourceCode} sourceCode")
Output
38175 start
26478 startColumn
282 startLine
38175 end
26478 endColumn
282 endLine
out/bootstrap/stdlib-bootstrapped/scala-3.0.0-RC2/src_managed/main/scala-library-src/scala/concurrent/Future.scala sourceFile
Some() sourceCode
Expectation
The trait related to symbol is located here. The only thing that is correct is sourceFile
. The sourceCode
is empty. I know there is more symbols that have problem e. g. object Future