aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2015-07-11 01:35:54 +0200
committerGuillaume Martres <smarter@ubuntu.com>2015-07-11 01:52:36 +0200
commit0efa171e8ccca0d49fc6d800fd21e29f7b7336fd (patch)
tree0a135f3b4c7fbe0d3dd29b2f00edd5c62c88d16b /test
parentb82313268b912c62f9ddc89fefd02be96f2de64c (diff)
downloaddotty-0efa171e8ccca0d49fc6d800fd21e29f7b7336fd.tar.gz
dotty-0efa171e8ccca0d49fc6d800fd21e29f7b7336fd.tar.bz2
dotty-0efa171e8ccca0d49fc6d800fd21e29f7b7336fd.zip
Don't add lower bounds of abstract types to the implicit scope
As the spec[1] says: "The parts of a type T are [...] if T is an abstract type, the parts of its upper bound;" [1]: http://www.scala-lang.org/files/archive/spec/2.11/07-implicits.html#implicit-parameters
Diffstat (limited to 'test')
-rw-r--r--test/dotc/tests.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 2baeeb49e..fbf26044c 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -144,6 +144,7 @@ class tests extends CompilerTest {
@Test def neg_traitParamsTyper = compileFile(negDir, "traitParamsTyper", xerrors = 5)
@Test def neg_traitParamsMixin = compileFile(negDir, "traitParamsMixin", xerrors = 2)
@Test def neg_firstError = compileFile(negDir, "firstError", xerrors = 3)
+ @Test def neg_implicitLowerBound = compileFile(negDir, "implicit-lower-bound", xerrors = 1)
@Test def run_all = runFiles(runDir)