aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/spec-thistype.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/spec-thistype.scala')
-rw-r--r--tests/untried/pos/spec-thistype.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/untried/pos/spec-thistype.scala b/tests/untried/pos/spec-thistype.scala
new file mode 100644
index 000000000..52b2bf34b
--- /dev/null
+++ b/tests/untried/pos/spec-thistype.scala
@@ -0,0 +1,3 @@
+class Foo[@specialized A] {
+ def bar(xs: List[A]): this.type = this
+}