diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2012-05-08 16:07:15 +0200 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2012-05-08 17:06:49 +0200 |
commit | 2e8029b127699ecd8ed1f55456faa345bd88c5ee (patch) | |
tree | 446e90390c05750e7bb0de4adfa4acafce7292d5 /src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala | |
parent | f9410256d97d8b8001e96291016d25f020013784 (diff) | |
download | scala-2e8029b127699ecd8ed1f55456faa345bd88c5ee.tar.gz scala-2e8029b127699ecd8ed1f55456faa345bd88c5ee.tar.bz2 scala-2e8029b127699ecd8ed1f55456faa345bd88c5ee.zip |
Fixed positions in named default applications (no hyperlinking in conjunction with implicit arguments).
Removed even more code in the presentation compiler testing infrastructure. One less level of indirection,
and a top-level object gone!
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala b/src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala index 90e388c30a..bef6f13bc3 100644 --- a/src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala +++ b/src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala @@ -338,7 +338,7 @@ trait NamesDefaults { self: Analyzer => // cannot call blockTyper.typedBlock here, because the method expr might be partially applied only val res = blockTyper.doTypedApply(tree, expr, refArgs, mode, pt) res.setPos(res.pos.makeTransparent) - val block = Block(stats ::: valDefs, res).setType(res.tpe).setPos(tree.pos) + val block = Block(stats ::: valDefs, res).setType(res.tpe).setPos(tree.pos.makeTransparent) context.namedApplyBlockInfo = Some((block, NamedApplyInfo(qual, targs, vargss :+ refArgs, blockTyper))) block |