diff options
author | Martin Odersky <odersky@gmail.com> | 2013-12-17 23:09:22 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-12-17 23:27:43 +0100 |
commit | 9e8d0709e9f43fbb1dc40baaab4f0891538d8e9c (patch) | |
tree | 2aaa37431319ba479fe406a507349511735d2ac9 /tests | |
parent | 9a839d706291fdd57aeb48c3f64654afbd144a83 (diff) | |
download | dotty-9e8d0709e9f43fbb1dc40baaab4f0891538d8e9c.tar.gz dotty-9e8d0709e9f43fbb1dc40baaab4f0891538d8e9c.tar.bz2 dotty-9e8d0709e9f43fbb1dc40baaab4f0891538d8e9c.zip |
Special handling of implicit members.
The previous treatment would force all members, causing cyclic reference errors.
We fix it by filtering early in computeMemberNames itself for implicits.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/overloaded.scala | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/pos/overloaded.scala b/tests/pos/overloaded.scala new file mode 100644 index 000000000..d76585f93 --- /dev/null +++ b/tests/pos/overloaded.scala @@ -0,0 +1,10 @@ +object overloaded { + + def f(x: String): String = x + def f[T >: Null](x: T): Int = 1 + + val x1 = f("abc") + val x2 = f(new Integer(1)) + val x3 = f(null) + +} |