summaryrefslogtreecommitdiff
path: root/test/files/pos/issue244.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan@lightbend.com>2016-10-12 16:06:40 -0700
committerAdriaan Moors <adriaan@lightbend.com>2016-10-12 16:08:18 -0700
commitb2b459115a7a0e1767bece648c1fdaf84533dce2 (patch)
tree0363dfc16fce3b107949790ce843666af56f3f95 /test/files/pos/issue244.scala
parent1e81a09a896a0d7497687b5df1b8220172eaec92 (diff)
downloadscala-b2b459115a7a0e1767bece648c1fdaf84533dce2.tar.gz
scala-b2b459115a7a0e1767bece648c1fdaf84533dce2.tar.bz2
scala-b2b459115a7a0e1767bece648c1fdaf84533dce2.zip
Detect clash of mixedin val and existing member.
Before, we looked only at the result type, which was silly. This was originally motivated by a hack to get to the error about conflicting paramaccessors. The error detection for that can now be formulated more directly. Fixes scala/scala-dev#244
Diffstat (limited to 'test/files/pos/issue244.scala')
-rw-r--r--test/files/pos/issue244.scala2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/files/pos/issue244.scala b/test/files/pos/issue244.scala
new file mode 100644
index 0000000000..f9189c9313
--- /dev/null
+++ b/test/files/pos/issue244.scala
@@ -0,0 +1,2 @@
+trait T { lazy val overloaded: String = "a" }
+class C extends T { def overloaded(a: String): String = "b" }