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

on scopes

No replies
Mark Harrah
Joined: 2008-12-18,
User offline. Last seen 35 weeks 3 days ago.

First, I think #2551 should be closed because it is as specified. I would have closed it myself, but it appears to have been discussed at a meeting.

Second, I uploaded a patch[1] for Section 4.7 the spec. As far as I understand, it is unspecified what happens in the following:

package a {
class A
class C
}

package b {
import a.{A => C, _ }
new C
}

The compiler interprets the unqualified C to be a.A. The patch explicitly specifies this behavior.

Thanks,
Mark

[1] http://lampsvn.epfl.ch/trac/scala/ticket/3468

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