diff options
author | odersky <odersky@gmail.com> | 2017-01-04 17:10:40 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-04 17:10:40 +0700 |
commit | 621d11c809d4ee98c36d09a81c6096f284068842 (patch) | |
tree | ef2abb7ccc4f0e86d1ae93152b3361956c73d14c /tests | |
parent | 64b8931dc62e35a4c7fa2f0a922874e34aed59fe (diff) | |
parent | 7a5f27108080226569e7eee1dc9bb7ef6da2b7ac (diff) | |
download | dotty-621d11c809d4ee98c36d09a81c6096f284068842.tar.gz dotty-621d11c809d4ee98c36d09a81c6096f284068842.tar.bz2 dotty-621d11c809d4ee98c36d09a81c6096f284068842.zip |
Merge pull request #1869 from dotty-staging/fix-#1868
Fix #1868: Fix a logic error in a match
Diffstat (limited to 'tests')
-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) } +} |