Index: src/parser.cc |
diff --git a/src/parser.cc b/src/parser.cc |
index 354f1c33187a33196be7b7db2813f089baa507b3..fcc6b5bc0fb3949c0e5fc492264476ad7809daf5 100644 |
--- a/src/parser.cc |
+++ b/src/parser.cc |
@@ -4660,7 +4660,7 @@ Block* Parser::BuildParameterInitializationBlock( |
{ |
BlockState block_state(&scope_, param_scope); |
DeclarationParsingResult::Declaration decl( |
- parameter.pattern, parameter.pattern->position(), initial_value); |
+ parameter.pattern, descriptor.initialization_pos, initial_value); |
Dan Ehrenberg
2015/11/24 00:37:35
I think you want the position to be the end of the
adamk
2015/11/24 01:08:51
Great catch. I made the test more complex and adde
|
PatternRewriter::DeclareAndInitializeVariables(param_block, &descriptor, |
&decl, nullptr, CHECK_OK); |
} |