diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-26 16:29:49 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2017-11-26 16:29:49 -0800 |
commit | db5cdae1f80fd89ba87ed397abf08eff8b771469 (patch) | |
tree | 6465d3f83910c7543eda00a816cf0d75524e1c47 /core/src/main/scala | |
parent | d6573e2238c72de1ffbc344a962a0cfaa557f983 (diff) | |
parent | 7390f6973eb99586083714e7ed49fa63c72c9c5d (diff) | |
download | mill-db5cdae1f80fd89ba87ed397abf08eff8b771469.tar.gz mill-db5cdae1f80fd89ba87ed397abf08eff8b771469.tar.bz2 mill-db5cdae1f80fd89ba87ed397abf08eff8b771469.zip |
Merge branch 'master' of github.com:lihaoyi/mill
Diffstat (limited to 'core/src/main/scala')
-rw-r--r-- | core/src/main/scala/mill/discover/Router.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/src/main/scala/mill/discover/Router.scala b/core/src/main/scala/mill/discover/Router.scala index 90e83430..b2d222b9 100644 --- a/core/src/main/scala/mill/discover/Router.scala +++ b/core/src/main/scala/mill/discover/Router.scala @@ -254,7 +254,9 @@ class Router [C <: Context](val c: C) { import c.universe._ def getValsOrMeths(curCls: Type): Iterable[MethodSymbol] = { def isAMemberOfAnyRef(member: Symbol) = { - weakTypeOf[AnyRef].members.exists(_.name == member.name) + // AnyRef is an alias symbol, we go to the real "owner" of these methods + val anyRefSym = c.mirror.universe.definitions.ObjectClass + member.owner == anyRefSym } val extractableMembers = for { member <- curCls.members |