summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-09-22 21:06:03 +0000
committerPaul Phillips <paulp@improving.org>2010-09-22 21:06:03 +0000
commit04159cb985dfc405f503f9a4532b4efa393ed6e2 (patch)
treed56e4a57de2f7289a339e3920c2ebefec45586e4 /test
parenta7ea942cfee40b1892dc8166c6429eb811561189 (diff)
downloadscala-04159cb985dfc405f503f9a4532b4efa393ed6e2.tar.gz
scala-04159cb985dfc405f503f9a4532b4efa393ed6e2.tar.bz2
scala-04159cb985dfc405f503f9a4532b4efa393ed6e2.zip
Test case closes #3509, no review.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/bug3509.flags1
-rw-r--r--test/files/run/bug3509.scala9
2 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/bug3509.flags b/test/files/run/bug3509.flags
new file mode 100644
index 0000000000..6933d924d3
--- /dev/null
+++ b/test/files/run/bug3509.flags
@@ -0,0 +1 @@
+-Yinline \ No newline at end of file
diff --git a/test/files/run/bug3509.scala b/test/files/run/bug3509.scala
new file mode 100644
index 0000000000..76f8d6016e
--- /dev/null
+++ b/test/files/run/bug3509.scala
@@ -0,0 +1,9 @@
+object Test {
+
+ class Foo(final var i:Int)
+
+ def main(args : Array[String]) : Unit = {
+ val foo = new Foo(0)
+ foo.i += 1
+ }
+} \ No newline at end of file