summaryrefslogtreecommitdiff
path: root/test/files/pos/t5644/other.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-04-06 09:11:00 -0700
committerPaul Phillips <paulp@improving.org>2012-04-06 09:43:17 -0700
commit19bb1732646c77e58fd63490afdca066afd5ec15 (patch)
treece9280294f5aa13e4c6fcb2e37b9ffc4a099d3d4 /test/files/pos/t5644/other.scala
parentec1d28ee0dbd08f814984e95c3245c1d6fab79d8 (diff)
downloadscala-19bb1732646c77e58fd63490afdca066afd5ec15.tar.gz
scala-19bb1732646c77e58fd63490afdca066afd5ec15.tar.bz2
scala-19bb1732646c77e58fd63490afdca066afd5ec15.zip
Fix for SI-5644.
Don't let OverloadedTypes reach the backend. When you want a method from a particular symbol, avoid getMember, which may inflict upon you an OverloadedType if an inherited member has the same name. Instead, use the (just now appearing) definitions.getDecl.
Diffstat (limited to 'test/files/pos/t5644/other.scala')
-rw-r--r--test/files/pos/t5644/other.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/files/pos/t5644/other.scala b/test/files/pos/t5644/other.scala
new file mode 100644
index 0000000000..50388fd9ec
--- /dev/null
+++ b/test/files/pos/t5644/other.scala
@@ -0,0 +1,3 @@
+class Foo {
+ List(1) exists(_ == (null: Any))
+}