Show
Ignore:
Timestamp:
10/23/09 06:35:37 (5 weeks ago)
Author:
sukyoungryu
Message:

[type checker] Fixed STypesUtil.staticArgsMatchStaticParams: check only the kinds of the given static parameter and static argument pair. Whether the static type argument satisfies the bound of the corresponding static parameter cannot be checked before the instantiation happens.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/src/com/sun/fortress/scala_src/useful/STypesUtil.scala

    r4251 r4281  
    487487  } 
    488488 
     489 
    489490  /** 
    490491   * Instantiate only the unlifted static parameters with the given static args 
     
    523524      val (param, arg) = paramAndArg 
    524525      (arg, param.getKind) match { 
    525         case (STypeArg(_, _, argType), _:KindType) => 
    526           toList(param.getExtendsClause). 
    527             forall(!analyzer.subtype(argType, _).isFalse) 
     526        case (_:TypeArg, _:KindType) => true 
    528527        case (_:IntArg, _:KindInt) => true 
    529528        case (_:BoolArg, _:KindBool) => true