aboutsummaryrefslogtreecommitdiff
path: root/tests/pos-special
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos-special')
-rw-r--r--tests/pos-special/spec-t5545/S_1.scala4
-rw-r--r--tests/pos-special/spec-t5545/S_2.scala4
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos-special/spec-t5545/S_1.scala b/tests/pos-special/spec-t5545/S_1.scala
new file mode 100644
index 000000000..59ec1fd85
--- /dev/null
+++ b/tests/pos-special/spec-t5545/S_1.scala
@@ -0,0 +1,4 @@
+trait F[@specialized(Int) T1, R] {
+ def f(v1: T1): R
+ def g = v1 => f(v1)
+}
diff --git a/tests/pos-special/spec-t5545/S_2.scala b/tests/pos-special/spec-t5545/S_2.scala
new file mode 100644
index 000000000..59ec1fd85
--- /dev/null
+++ b/tests/pos-special/spec-t5545/S_2.scala
@@ -0,0 +1,4 @@
+trait F[@specialized(Int) T1, R] {
+ def f(v1: T1): R
+ def g = v1 => f(v1)
+}