diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2015-03-17 21:08:18 -0700 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2015-03-17 21:08:18 -0700 |
commit | dfe66d4efcfc6b2f3f501c64160253efdced98e6 (patch) | |
tree | 0ac65f76b76835ca1d6a3be7735c82d72d1efa2e /src/compiler | |
parent | f0993e5a77cbe4d3f33ee0c79a9e99ecfea939b6 (diff) | |
parent | 79c053738b8907e461e5087f63d247a64271509a (diff) | |
download | scala-dfe66d4efcfc6b2f3f501c64160253efdced98e6.tar.gz scala-dfe66d4efcfc6b2f3f501c64160253efdced98e6.tar.bz2 scala-dfe66d4efcfc6b2f3f501c64160253efdced98e6.zip |
Merge pull request #4388 from retronym/ticket/9223
SI-9223 By-name constructor params should not be aliased
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index 3a85d16f55..758425aad5 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -2053,7 +2053,7 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper case acc => acc } ownAcc match { - case acc: TermSymbol if !acc.isVariable => + case acc: TermSymbol if !acc.isVariable && !isByNameParamType(acc.info) => debuglog(s"$acc has alias ${alias.fullLocationString}") acc setAlias alias case _ => |