aboutsummaryrefslogtreecommitdiff
path: root/tests/neg
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-03-03 14:15:30 +0100
committerGitHub <noreply@github.com>2017-03-03 14:15:30 +0100
commit761b1fd116ddbf24e54dc46f85017f6ee2397142 (patch)
tree1aa29fc99df1cdf53c84ad96f36eac26d12db22a /tests/neg
parent917a7edad284b180dff917341dd0f800d430291f (diff)
parent2e33a882f4dee2731df3e4604e9af338b5a8ec42 (diff)
downloaddotty-761b1fd116ddbf24e54dc46f85017f6ee2397142.tar.gz
dotty-761b1fd116ddbf24e54dc46f85017f6ee2397142.tar.bz2
dotty-761b1fd116ddbf24e54dc46f85017f6ee2397142.zip
Merge pull request #2031 from dotty-staging/fix-#2030
Fix #2030: Don't chain implicit conversions
Diffstat (limited to 'tests/neg')
-rw-r--r--tests/neg/i2030.scala5
1 files changed, 5 insertions, 0 deletions
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
+}