aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1868.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-01-02 14:45:48 +0700
committerMartin Odersky <odersky@gmail.com>2017-01-02 14:45:57 +0700
commit7a5f27108080226569e7eee1dc9bb7ef6da2b7ac (patch)
treea396d00e587f3df2c81cb49ba23d15438f64ad2b /tests/pos/i1868.scala
parent328ded4d8f8e5c82a053253c26da7042ca657d65 (diff)
downloaddotty-7a5f27108080226569e7eee1dc9bb7ef6da2b7ac.tar.gz
dotty-7a5f27108080226569e7eee1dc9bb7ef6da2b7ac.tar.bz2
dotty-7a5f27108080226569e7eee1dc9bb7ef6da2b7ac.zip
Fix #1868 - Fix logic bug in match
Diffstat (limited to 'tests/pos/i1868.scala')
-rw-r--r--tests/pos/i1868.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/i1868.scala b/tests/pos/i1868.scala
new file mode 100644
index 000000000..3ca3e0094
--- /dev/null
+++ b/tests/pos/i1868.scala
@@ -0,0 +1,7 @@
+class Test[X](x: X) {
+ def checkSpecialization[Y](y: Y): X = {
+ def specMe[@specialized T]() = ()
+ x
+ }
+ private def checkNameStartsWith(prefix: String) = { (new Exception) }
+}