diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-16 16:16:49 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-16 16:16:49 +0100 |
commit | b0ac4da8a300f3a2c73423ec6f783d1bfb708843 (patch) | |
tree | d4f4b5d1acb4f60d0a0ef532093a3d662499306a /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | |
parent | 23326def4bf5bcfb7f5286707eed2f57a5da731d (diff) | |
parent | 8a27336c0e896d3fee6213068c77f23e62a0cd18 (diff) | |
download | scala-b0ac4da8a300f3a2c73423ec6f783d1bfb708843.tar.gz scala-b0ac4da8a300f3a2c73423ec6f783d1bfb708843.tar.bz2 scala-b0ac4da8a300f3a2c73423ec6f783d1bfb708843.zip |
Merge pull request #3455 from densh/topic/patdef
Fix SI-8202 and improve support for splicing patterns into vals
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index 5dadbd0825..8271363527 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -2492,7 +2492,7 @@ self => def mkDefs(p: Tree, tp: Tree, rhs: Tree): List[Tree] = { val trees = { val pat = if (tp.isEmpty) p else Typed(p, tp) setPos (p.pos union tp.pos) - gen.mkPatDef(newmods, pat, rhs) + makePatDef(newmods, pat, rhs) } if (newmods.isDeferred) { trees match { |