aboutsummaryrefslogtreecommitdiff
path: root/tests/run/t0677-old.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/t0677-old.scala')
-rw-r--r--tests/run/t0677-old.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run/t0677-old.scala b/tests/run/t0677-old.scala
new file mode 100644
index 000000000..fde0aac9f
--- /dev/null
+++ b/tests/run/t0677-old.scala
@@ -0,0 +1,11 @@
+
+
+@deprecated("Suppress warnings", since="2.11")
+object Test extends dotty.runtime.LegacyApp {
+ class X[T: ClassManifest] {
+ val a = Array.ofDim[T](3, 4)
+ }
+ val x = new X[String]
+ x.a(1)(2) = "hello"
+ assert(x.a(1)(2) == "hello")
+}