summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2015-03-17 21:08:18 -0700
committerGrzegorz Kossakowski <grzegorz.kossakowski@gmail.com>2015-03-17 21:08:18 -0700
commitdfe66d4efcfc6b2f3f501c64160253efdced98e6 (patch)
tree0ac65f76b76835ca1d6a3be7735c82d72d1efa2e /src/compiler
parentf0993e5a77cbe4d3f33ee0c79a9e99ecfea939b6 (diff)
parent79c053738b8907e461e5087f63d247a64271509a (diff)
downloadscala-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.scala2
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 _ =>