Permalink
Browse files

validation: use ITypeInfoContext.contextualize(JSType) when validatin…

…g parameterized type bounds
  • Loading branch information...
1 parent 259a0bf commit d5f7da1fa26c12fc5ddffdafcf2b2f41934ae42f @panchenko committed Dec 26, 2012
@@ -147,10 +147,9 @@ public IValidationStatus checkType(ITypeInfoContext context, Type type) {
if (variable.getBound() != null) {
final IRType bound = RTypes.create(context,
variable.getBound());
- final IRType actual = RTypes.create(
- context,
- parameterizedType.getActualTypeArguments().get(
- i));
+ final IRType actual = context
+ .contextualize(parameterizedType
+ .getActualTypeArguments().get(i));
if (!bound.isAssignableFrom(actual).ok()) {
if (statuses == null) {
statuses = new ArrayList<ValidationStatus>();

0 comments on commit d5f7da1

Please sign in to comment.