diff options
Diffstat (limited to 'tests/pos/pickleOK/extmethods.scala')
-rw-r--r-- | tests/pos/pickleOK/extmethods.scala | 8 |
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) +} |