Aladdin - Scala Bugtracking
[#448] project: specification priority: low category: bug
submitter assigned to status date submitted
Stephane Martin open 2005-06-14 18:53:26.0
subject Polymorphic attributes
code
object test with Application {
  class attr[A <: AnyVal](x: A) extends scala.Attribute;
  [attr(99)] class C;
}
what happened
test.scala:3: malformed attribute
  [attr(99)] class C;
   ^
one error found
what expected Section 5.1.7 in the Scala Language Specification should describe more precisely which types may be used as attributes.
[back to overview]
Changes of this bug report