diff options
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) } +} |