From 19bb1732646c77e58fd63490afdca066afd5ec15 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Fri, 6 Apr 2012 09:11:00 -0700 Subject: 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. --- test/files/pos/t5644/other.scala | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/files/pos/t5644/other.scala (limited to 'test/files/pos/t5644/other.scala') 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)) +} -- cgit v1.2.3