summaryrefslogtreecommitdiff
path: root/src/reflect
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2013-06-03 22:13:38 -0700
committerPaul Phillips <paulp@improving.org>2013-06-03 22:13:38 -0700
commite317d0bcc9fa8f2a2e6d93c4ad5edf5326f5a617 (patch)
tree49f3009e24ebc993d390f3aecb9ed597d9931ee8 /src/reflect
parent1472dadd03496aa89624c81ded01edeb71420cc3 (diff)
parent60d462ef6e0dba5f9a7c4cc81255fcb9fba7939a (diff)
downloadscala-e317d0bcc9fa8f2a2e6d93c4ad5edf5326f5a617.tar.gz
scala-e317d0bcc9fa8f2a2e6d93c4ad5edf5326f5a617.tar.bz2
scala-e317d0bcc9fa8f2a2e6d93c4ad5edf5326f5a617.zip
Merge remote-tracking branch 'origin/2.10.2' into pr/merge
* origin/2.10.2: SI-7532 Fix regression in Java inner classfile reader SI-7517 Fix higher kinded type inference regression SI-7516 Revert "SI-7234 Make named args play nice w. depmet types" SI-7486 Regressions in implicit search. SI-7509 Avoid crasher as erronous args flow through NamesDefaults
Diffstat (limited to 'src/reflect')
-rw-r--r--src/reflect/scala/reflect/internal/Types.scala7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/reflect/scala/reflect/internal/Types.scala b/src/reflect/scala/reflect/internal/Types.scala
index fc3f5de77f..26d8234278 100644
--- a/src/reflect/scala/reflect/internal/Types.scala
+++ b/src/reflect/scala/reflect/internal/Types.scala
@@ -3226,10 +3226,9 @@ trait Types extends api.Types { self: SymbolTable =>
sameLength(typeArgs, tp.typeArgs) && {
val lhs = if (isLowerBound) tp.typeArgs else typeArgs
val rhs = if (isLowerBound) typeArgs else tp.typeArgs
- // this is a higher-kinded type var with same arity as tp.
- // side effect: adds the type constructor itself as a bound
- addBound(tp.typeConstructor)
- isSubArgs(lhs, rhs, params, AnyDepth)
+ // This is a higher-kinded type var with same arity as tp.
+ // If so (see SI-7517), side effect: adds the type constructor itself as a bound.
+ isSubArgs(lhs, rhs, params, AnyDepth) && { addBound(tp.typeConstructor); true }
}
}
// The type with which we can successfully unify can be hidden