diff options
author | Som Snytt <som.snytt@gmail.com> | 2012-04-27 02:02:55 -0700 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2012-04-28 01:39:54 -0700 |
commit | 77b577a5aeab782b64b39b3a812c35fdd8ab265a (patch) | |
tree | c8c832e553580257d67b90e23e8599e45182676a /test/files | |
parent | 2a9cce8a6859a34c259d0b399687df3a242de16b (diff) | |
download | scala-77b577a5aeab782b64b39b3a812c35fdd8ab265a.tar.gz scala-77b577a5aeab782b64b39b3a812c35fdd8ab265a.tar.bz2 scala-77b577a5aeab782b64b39b3a812c35fdd8ab265a.zip |
SI-5543: Ctor default arg wrongly scoped (revised)
This patch fixes the motivating bug by detecting when a method is
the default arg getter for a constructor parameter. That requires
fixing a secondary bug where an arbitrary string was used to encode
<init> in lieu of <init>.encode. There is no speculative mangling.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t5543.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/files/run/t5543.scala b/test/files/run/t5543.scala index 9d9c645d7a..651bc7f2b2 100644 --- a/test/files/run/t5543.scala +++ b/test/files/run/t5543.scala @@ -10,7 +10,7 @@ object Test extends Function0[Int] { } object A { val v = 5 - // should happily coexist with default getters + // should happily coexist with default getters, in a happier world def init(x: Function0[Int] = Test.this)(a: Int = v, b: Int = v * x()) = x.toString +", "+ a +", "+ b override def toString = "A" } |