aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-11-10 15:06:00 +0100
committerMartin Odersky <odersky@gmail.com>2016-11-10 15:06:27 +0100
commit82e2ac52926846cebc1ec3a5b5aa4037eeecf93a (patch)
tree34d204c6484b8f5e7a2ec0f354b8954a61cb570b /tests
parent28c2e04dd33b6389a44460f977a97b8691265994 (diff)
downloaddotty-82e2ac52926846cebc1ec3a5b5aa4037eeecf93a.tar.gz
dotty-82e2ac52926846cebc1ec3a5b5aa4037eeecf93a.tar.bz2
dotty-82e2ac52926846cebc1ec3a5b5aa4037eeecf93a.zip
Fix #1662: Add missing case for singleton
Have to handle also SkolemTypes there. Fixes #1662.
Diffstat (limited to 'tests')
-rw-r--r--tests/neg/i1662.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/neg/i1662.scala b/tests/neg/i1662.scala
new file mode 100644
index 000000000..1f9d02ba6
--- /dev/null
+++ b/tests/neg/i1662.scala
@@ -0,0 +1,6 @@
+class Lift {
+ def apply(f: F0) // error
+ class F0
+ object F0 { implicit def f2f0(String): F0 = ??? } // error
+ (new Lift)("")
+}