Aladdin - Scala Bugtracking
[#736] project: scala-doc priority: medium category: bug
submitter assigned to status date submitted
Burak Sean moved to trac 2006-09-09 14:39:40.0
subject var definitions
code
package pack

/** hello */
abstract class Foo {
  /** hola */
  var x:Int
}

/** hello */
class Bar extends Foo {
  /** hola */
  override var x = 3
}
what happened
documentation for Foo:x shows the setter and getter methods, and does not indicate that "there is an abstract va\
rdef"

documentation for Bar:x is altogether missing
what expected I would expect "abstract var x:Int" in documentation of Foo, and "var x" in definition of Bar.
[back to overview]
Changes of this bug report
Sean  edited on  2006-09-09 16:34:25.0
I think NSC is doing some early transformations before or during type checking is completed that blow away all of this information. Vars never really exist, and we can't piece them back together very easily in Scaladoc.
Martin  edited on  2006-09-19 19:40:42.0
nsc now marks setters and getters of abstract fields with the ABSTRACT flag. What's more, isSetter and isGetter (in Symbols.scala) now return true for such members. So, back to you, Sean...
Gilles  edited on  2007-08-29 10:58:35.0