This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Re: Type conflict (type argument versus abstract method)

No replies
Sciss
Joined: 2008-12-17,
User offline. Last seen 28 weeks 5 days ago.

trait GE[ R <: Rate ] {
type rate = R
}

this seems correct. i can do someGE.rate match { ... } . didn't know this was possible for type members (thought there was some erasure happening). interesting....

best, -sciss-

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland