summaryrefslogtreecommitdiff
path: root/test/files/neg/abstract-inaccessible.scala
diff options
context:
space:
mode:
authorSeth Tisue <seth@tisue.net>2017-04-10 14:34:51 -0500
committerGitHub <noreply@github.com>2017-04-10 14:34:51 -0500
commit15e2759f49a3ef0f71290f4bbd9839cbf2346b0e (patch)
treea809f665e61208cb7e8ae098c676e80f341a68ed /test/files/neg/abstract-inaccessible.scala
parent715c88e9b74d1b4d1d0c4da9d0cc8f1b740e2dd3 (diff)
parentbad61ce0ff9f460c2f8873c134a7f6bee0a53824 (diff)
downloadscala-15e2759f49a3ef0f71290f4bbd9839cbf2346b0e.tar.gz
scala-15e2759f49a3ef0f71290f4bbd9839cbf2346b0e.tar.bz2
scala-15e2759f49a3ef0f71290f4bbd9839cbf2346b0e.zip
Merge pull request #5402 from som-snytt/issue/8040-unused
SI-8040 Improve unused warnings
Diffstat (limited to 'test/files/neg/abstract-inaccessible.scala')
-rw-r--r--test/files/neg/abstract-inaccessible.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/neg/abstract-inaccessible.scala b/test/files/neg/abstract-inaccessible.scala
index 3c80f30522..02b458016f 100644
--- a/test/files/neg/abstract-inaccessible.scala
+++ b/test/files/neg/abstract-inaccessible.scala
@@ -4,6 +4,6 @@ package foo {
trait YourTrait {
def implementMe(f: Int => (String, Bippy)): Unit
def overrideMe[T <: Bippy](x: T): T = x
- def overrideMeAlso(x: Map[Int, Set[Bippy]]) = 5
+ def overrideMeAlso(x: Map[Int, Set[Bippy]]) = x.keys.head
}
}