- Timestamp:
- 01/07/09 18:53:22 (11 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/ProjectFortress/src/com/sun/fortress/compiler/typechecker/TypeChecker.java
r3272 r3292 86 86 import edu.rice.cs.plt.tuple.Pair; 87 87 import edu.rice.cs.plt.tuple.Triple; 88 89 import static com.sun.fortress.compiler.typechecker.TypeNormalizer.normalize; 88 90 89 91 /** … … 923 925 else { 924 926 String err = "Applicable overloading of function " + that.getFunction() + 925 " could not be found for argument type " + argument_result.type(); // error message needs work927 " could not be found for argument type " + normalize(argument_result.type().unwrap()); // error message needs work 926 928 result = new TypeCheckerResult(that, TypeError.make(err, that)); 927 929 result_type = Option.none(); … … 2346 2348 // } 2347 2349 // System.err.println("equal? " + bodyType.equals(returnType.unwrap())); 2348 result = newChecker.checkSubtype( bodyType,2349 returnType.unwrap(),2350 that,2351 errorMsg("Function body has type ", bodyType, ", but ",2352 "declared return type is ", returnType.unwrap()));2350 result = newChecker.checkSubtype(normalize(bodyType), 2351 normalize(returnType.unwrap()), 2352 that, 2353 errorMsg("Function body has type ", normalize(bodyType), ", but ", 2354 "declared return type is ", normalize(returnType.unwrap()))); 2353 2355 } 2354 2356

