-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
area:exportarea:presentation-compilerRelated to the presentation compiler module used by Metals and possibly other toolsRelated to the presentation compiler module used by Metals and possibly other toolsitype:enhancement
Milestone
Description
Compiler version
3.4.0-RC1
Minimized code
We can get the example from the docs:
class BitMap
class InkJet
class Printer:
type PrinterType
def print(bits: BitMap): Unit = ???
def status: List[String] = ???
class Scanner:
def scan(): BitMap = ???
def status: List[String] = ???
class Copier:
private val printUnit = new Printer { type PrinterType = InkJet }
private val scanUnit = new Scanner
export scanUnit.scan
export printUnit.{status as _, *}
def status: List[String] = printUnit.status ++ scanUnit.status
Output
Currently when using the exported symbols there will be no link to the original symbol, which means both semanticdb and the presentation compiler will not work properly. This most likely affects Intellij also.
Expectation
There is a .sourceSymbol
filed, which could maybe link to the original symbol?
joroKr21, doohochang, nolondil and Deliganli
Metadata
Metadata
Assignees
Labels
area:exportarea:presentation-compilerRelated to the presentation compiler module used by Metals and possibly other toolsRelated to the presentation compiler module used by Metals and possibly other toolsitype:enhancement