diff options
author | odersky <odersky@gmail.com> | 2017-03-03 14:15:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-03 14:15:30 +0100 |
commit | 761b1fd116ddbf24e54dc46f85017f6ee2397142 (patch) | |
tree | 1aa29fc99df1cdf53c84ad96f36eac26d12db22a /tests/neg/i2030.scala | |
parent | 917a7edad284b180dff917341dd0f800d430291f (diff) | |
parent | 2e33a882f4dee2731df3e4604e9af338b5a8ec42 (diff) | |
download | dotty-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/i2030.scala')
-rw-r--r-- | tests/neg/i2030.scala | 5 |
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 +} |