From 7a5f27108080226569e7eee1dc9bb7ef6da2b7ac Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Mon, 2 Jan 2017 14:45:48 +0700 Subject: Fix #1868 - Fix logic bug in match --- tests/pos/i1868.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/pos/i1868.scala (limited to 'tests/pos/i1868.scala') 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) } +} -- cgit v1.2.3