From 1aa4b56c4813117f3be3a725c404c242eccefe10 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 25 Feb 2017 18:28:12 +0100 Subject: Don't chain implicit conversions When inferring a view, we are not allowed to use another implicit conversion to adapt its result. Fixing this revealed another problem where we have to re-enable implicit conversions when pre-typing arguments in overloading resolution. --- tests/neg/i2030.scala | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tests/neg/i2030.scala (limited to 'tests/neg') diff --git a/tests/neg/i2030.scala b/tests/neg/i2030.scala new file mode 100644 index 000000000..2d049f4e6 --- /dev/null +++ b/tests/neg/i2030.scala @@ -0,0 +1,5 @@ +// This used to take ~12s, the check should be that +// it runs in reasonable time (i.e. instantaneous). +object a { + val x: String | Int = 'a // error +} -- cgit v1.2.3