diff options
author | Paul Phillips <paulp@improving.org> | 2012-05-12 11:34:25 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-05-12 11:34:25 -0700 |
commit | 50a7788bac610bcda790106be11818e0b94047b8 (patch) | |
tree | 845f89644f7fd796049ca9c5ece1a534cb5ac0f1 /test | |
parent | 255cd5106d2bc37a7d9aa8092e279195dc7727cc (diff) | |
parent | f1d81c9b9b300b2f526c03a27600e6fe481fc7c6 (diff) | |
download | scala-50a7788bac610bcda790106be11818e0b94047b8.tar.gz scala-50a7788bac610bcda790106be11818e0b94047b8.tar.bz2 scala-50a7788bac610bcda790106be11818e0b94047b8.zip |
Merge branch 'master' of https://github.com/scala/scala
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t5037.check | 2 | ||||
-rw-r--r-- | test/files/run/t5037.scala | 18 | ||||
-rw-r--r-- | test/files/run/t5527.check | 2 | ||||
-rw-r--r-- | test/files/specialized/SI-5005.check | 2 |
4 files changed, 22 insertions, 2 deletions
diff --git a/test/files/run/t5037.check b/test/files/run/t5037.check new file mode 100644 index 0000000000..da29283aaa --- /dev/null +++ b/test/files/run/t5037.check @@ -0,0 +1,2 @@ +true +false diff --git a/test/files/run/t5037.scala b/test/files/run/t5037.scala new file mode 100644 index 0000000000..7b1fce7a82 --- /dev/null +++ b/test/files/run/t5037.scala @@ -0,0 +1,18 @@ +object Test { + def main(args: Array[String]) { + val t = new Test + t.inner.foo() + } +} + +class Test { + class Inner { + def foo() { + println(bar) + bar = false + println(bar) + } + } + val inner = new Inner + private[this] final var bar = true +} diff --git a/test/files/run/t5527.check b/test/files/run/t5527.check index bb13928fd8..1518168c51 100644 --- a/test/files/run/t5527.check +++ b/test/files/run/t5527.check @@ -1,4 +1,4 @@ -[[syntax trees at end of parser]]// Scala source: newSource1 +[[syntax trees at end of parser]] // newSource1 package <empty> { object UselessComments extends scala.AnyRef { def <init>() = { diff --git a/test/files/specialized/SI-5005.check b/test/files/specialized/SI-5005.check index 9fc63a2b1d..81e8342dad 100644 --- a/test/files/specialized/SI-5005.check +++ b/test/files/specialized/SI-5005.check @@ -1,4 +1,4 @@ -[[syntax trees at end of specialize]]// Scala source: newSource1 +[[syntax trees at end of specialize]] // newSource1 package <empty> { class C2[@specialized(scala.Boolean) U >: Nothing <: Any] extends Object { def <init>(): C2[U] = { |