diff options
author | Martin Odersky <odersky@gmail.com> | 2017-01-02 14:45:48 +0700 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-01-02 14:45:57 +0700 |
commit | 7a5f27108080226569e7eee1dc9bb7ef6da2b7ac (patch) | |
tree | a396d00e587f3df2c81cb49ba23d15438f64ad2b /tests/pos | |
parent | 328ded4d8f8e5c82a053253c26da7042ca657d65 (diff) | |
download | dotty-7a5f27108080226569e7eee1dc9bb7ef6da2b7ac.tar.gz dotty-7a5f27108080226569e7eee1dc9bb7ef6da2b7ac.tar.bz2 dotty-7a5f27108080226569e7eee1dc9bb7ef6da2b7ac.zip |
Fix #1868 - Fix logic bug in match
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i1868.scala | 7 |
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) } +} |