aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/typers.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/typers.scala')
-rw-r--r--tests/pos/typers.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/pos/typers.scala b/tests/pos/typers.scala
index 2e0a7c0fd..c02bcda22 100644
--- a/tests/pos/typers.scala
+++ b/tests/pos/typers.scala
@@ -1,9 +1,10 @@
package test
import annotation.{tailrec, switch}
+import collection.mutable._
object typers {
-
+
object Eta {
def fun(x: Int): Int = x + 1
@@ -114,5 +115,7 @@ object typers {
val arr = List("a", "b", "c").toArray
val i = 2
arr(i).charAt(0)
+
+ val x = new ArrayBuffer[String] // testing overloaded polymorphic constructors
}
} \ No newline at end of file