Skip to content

Commit

Permalink
SI-7302 importing from Any.
Browse files Browse the repository at this point in the history
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
paulp committed Mar 27, 2013
1 parent 79b18cc commit 2b4cd6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reflect/scala/reflect/internal/Definitions.scala
Expand Up @@ -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? */
Expand Down

0 comments on commit 2b4cd6c

Please sign in to comment.