diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/TransMatcher.scala | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/TransMatcher.scala b/src/compiler/scala/tools/nsc/matching/TransMatcher.scala index 898d82c28e..54187e02f8 100644 --- a/src/compiler/scala/tools/nsc/matching/TransMatcher.scala +++ b/src/compiler/scala/tools/nsc/matching/TransMatcher.scala @@ -221,8 +221,11 @@ with RightTracers { //Console.println(pat); //Console.println(pat.tpe); //Console.println(b.tpe); - b.symbol.setInfo(pat2.tpe); - b.setType(pat2.tpe); + val tpe1:Type = pat2.tpe.widen.baseType( definitions.SeqClass ).typeArgs(0); + + val tpe = appliedType(definitions.SeqClass.typeConstructor, List(tpe1)) + b.symbol.setInfo(tpe); + b.setType(tpe); val res = copy.Bind(b, id, wc); //Console.println("====>"); //Console.println(res); |