Permalink
Browse files

SI-7302 importing from Any.

Turns out the "minor tweaks" in 632daed were only minor
for major values of minor. You can indeed import members from
Any/Object, so long as you rename them. Reverted logic error.
Test case will accompany SI-7233 upon merge into master.
  • Loading branch information...
1 parent 79b18cc commit 2b4cd6c11016d046affb1d4ae787f85c6be1deec @paulp paulp committed Mar 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/reflect/scala/reflect/internal/Definitions.scala
@@ -244,8 +244,8 @@ trait Definitions extends api.StandardDefinitions {
(sym eq NoSymbol)
|| sym.isConstructor
|| sym.isPrivateLocal
- || isUniversalMember(sym)
)
+ def isUnimportableUnlessRenamed(sym: Symbol) = isUnimportable(sym) || isUniversalMember(sym)
def isImportable(sym: Symbol) = !isUnimportable(sym)
/** Is this type equivalent to Any, AnyVal, or AnyRef? */

0 comments on commit 2b4cd6c

Please sign in to comment.