aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/pickleOK/extmethods.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-03-05 15:56:43 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-03-18 11:14:15 +0100
commit35d1160cd65d21076b1f640624663ad7b35f9c56 (patch)
treee6dd003c59002bb31a96f0dc357ee1f5ef84188d /tests/pos/pickleOK/extmethods.scala
parent3823f29c05cb071cd3a595751543021a4f4cf382 (diff)
downloaddotty-35d1160cd65d21076b1f640624663ad7b35f9c56.tar.gz
dotty-35d1160cd65d21076b1f640624663ad7b35f9c56.tar.bz2
dotty-35d1160cd65d21076b1f640624663ad7b35f9c56.zip
More tests
Both some long overdue pos tests and more pickleOK tests
Diffstat (limited to 'tests/pos/pickleOK/extmethods.scala')
-rw-r--r--tests/pos/pickleOK/extmethods.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/pickleOK/extmethods.scala b/tests/pos/pickleOK/extmethods.scala
new file mode 100644
index 000000000..3a0f8761c
--- /dev/null
+++ b/tests/pos/pickleOK/extmethods.scala
@@ -0,0 +1,8 @@
+package extMethods
+
+trait That1[A]
+class T[A, This <: That1[A]] extends AnyVal {
+ self: This =>
+ var next: This = _
+ final def loop(x: This, cnt: Int): Int = loop(x, cnt + 1)
+}