aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t2545.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t2545.scala')
-rwxr-xr-xtests/untried/pos/t2545.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/untried/pos/t2545.scala b/tests/untried/pos/t2545.scala
new file mode 100755
index 000000000..6ad994223
--- /dev/null
+++ b/tests/untried/pos/t2545.scala
@@ -0,0 +1,10 @@
+trait Frog[T] {
+ def hello: T
+ def size: Int
+ }
+
+ trait OnlyWithFrogs {
+ self: Frog[_] =>
+
+ def sizeStr = size.toString
+ }