From d9c8ccce14bdd4f9364af4941cd47edbfec0c8ce Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Thu, 23 May 2013 21:23:25 +0200 Subject: SI-7509 Avoid crasher as erronous args flow through NamesDefaults The fix for SI-7238 caused this regression. This commit marks taints whole Apply with an ErrorType if it has an erroneous argument, so as to stop a later crash trying to further process the tree. --- test/files/neg/t7509.scala | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 test/files/neg/t7509.scala (limited to 'test/files/neg/t7509.scala') diff --git a/test/files/neg/t7509.scala b/test/files/neg/t7509.scala new file mode 100644 index 0000000000..3cba801ea7 --- /dev/null +++ b/test/files/neg/t7509.scala @@ -0,0 +1,4 @@ +object NMWE { + def crash[R <: AnyRef](f: R)(implicit ev: R): Any = ??? + crash(42) +} -- cgit v1.2.3