Semantic highlighting not working for default arguments
In the following code snippet `Bar.value` is not highlighted:
class Foo(val f: Int = Bar.value) // errror
object Bar {
val value = 0
}
Leave a comment
on 2013-01-04 18:45 *
By huitseeker
- this is only a problem for constructor default arguments
- the issue is that default values get translated at typing to method definitions in the companion object of the class
- currently, the literals for the body of those definitions are thought of as not having a source code representation (line = -1), even though the position offsets are OK
- hyperlinking, markoccurences, highlighting fail to link to the body which is made reference of in the default's definition