diff options
Diffstat (limited to 'test/files/pos/gen-traversable-methods.scala')
-rw-r--r-- | test/files/pos/gen-traversable-methods.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/files/pos/gen-traversable-methods.scala b/test/files/pos/gen-traversable-methods.scala new file mode 100644 index 0000000000..2604a09f11 --- /dev/null +++ b/test/files/pos/gen-traversable-methods.scala @@ -0,0 +1,20 @@ + + + +import collection._ + + + +object Test { + + def main(args: Array[String]) { + val gen: GenTraversable[Int] = List(1, 2, 3) + gen.head + gen.headOption + gen.tail + gen.last + gen.lastOption + gen.init + } + +} |