From e86832d7e845014dd272b71e2c12f0eedd55e85a Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Thu, 2 May 2013 15:40:27 -0700 Subject: SI-7441 Don't ramble on about inapplicable implicits. --- test/files/neg/t7441.check | 6 ++++++ test/files/neg/t7441.scala | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 test/files/neg/t7441.check create mode 100644 test/files/neg/t7441.scala (limited to 'test') diff --git a/test/files/neg/t7441.check b/test/files/neg/t7441.check new file mode 100644 index 0000000000..f259457197 --- /dev/null +++ b/test/files/neg/t7441.check @@ -0,0 +1,6 @@ +t7441.scala:4: error: type mismatch; + found : Int(1) + required: List[Any] + def test = apply(1) + ^ +one error found diff --git a/test/files/neg/t7441.scala b/test/files/neg/t7441.scala new file mode 100644 index 0000000000..dad7421e3f --- /dev/null +++ b/test/files/neg/t7441.scala @@ -0,0 +1,7 @@ +object Test { + object Bar { + def apply(xs: List[Any]): Int = 0 + def test = apply(1) + } + implicit def foo = 1 +} -- cgit v1.2.3