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

:type not working in Scala 2.9.0.RC2 REPL

4 replies
Amitava Shee
Joined: 2010-12-14,
User offline. Last seen 42 years 45 weeks ago.
$ scala
Welcome to Scala version 2.9.0.RC2 (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_24).
Type in expressions to have them evaluated.
Type :help for more information.

scala> :type (List(1,2,3))
Failed to determine type.

Pardon me if this has been reported already.

Thanks & Regards,
Amitava Shee
twtr: @amitavashee
extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
Re: :type not working in Scala 2.9.0.RC2 REPL

On 5/2/11 5:12 PM, Amitava Shee wrote:
> $ scala
> Welcome to Scala version 2.9.0.RC2 (Java HotSpot(TM) 64-Bit Server VM,
> Java 1.6.0_24).
> Type in expressions to have them evaluated.
> Type :help for more information.
>
> scala> :type (List(1,2,3))
> Failed to determine type.
>
> Pardon me if this has been reported already.

FYI, if it hasn't been reported, it still hasn't been reported.
Emailing scala-language doesn't count.

Looks like another unfortunate casualty of some recent change. I wonder
if my days of pretending I can cover everything are drawing to a close...

Amitava Shee
Joined: 2010-12-14,
User offline. Last seen 42 years 45 weeks ago.
Re: :type not working in Scala 2.9.0.RC2 REPL
Thanks for registering this in trac - https://lampsvn.epfl.ch/trac/scala/changeset/24867

I will post in trac in future.

-Amitava
mads379
Joined: 2010-06-07,
User offline. Last seen 2 years 19 weeks ago.
Re: :type not working in Scala 2.9.0.RC2 REPL

> I wonder if my days of pretending I can cover everything are drawing to a close...

Heh, I think I recognize that feeling from when I tried to improve the Scala syntax in TextMate
before eventually giving up. In this case, though, I will encourage you to keep that illusion because
your improvements to the compiler are too cool to let some regression stop you ;)

/Mads

Amitava Shee
Joined: 2010-12-14,
User offline. Last seen 42 years 45 weeks ago.
Re: :type not working in Scala 2.9.0.RC2 REPL
This regressed with RC4. Registered a bug - http://lampsvn.epfl.ch/trac/scala/ticket/4556

-Amitava

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