- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
on scopes
Sat, 2010-06-19, 02:04
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