Show
Ignore:
Timestamp:
06/10/09 19:56:03 (6 months ago)
Author:
sukyoungryu
Message:

[type checker] Fixed small things in the Scala type checker. Matched some error messages from the Java type checker and the Scala type checker. Do not type check programs with syntax errors. Moved two tests from not_working_static_tests to compiler_tests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/src/com/sun/fortress/compiler/typechecker/TypeChecker.java

    r3829 r3835  
    432432                } 
    433433                else{ 
    434                     String err_message = "Two consecutive ^s"; 
     434                    String err_message = "Two consecutive ^s."; 
    435435                    StaticError err=TypeError.make(err_message, 
    436                                                                        new Span(NodeUtil.getSpan((ASTNode)exponent.unwrap()), 
    437                                                                                 NodeUtil.getSpan(that)).toString()); 
     436                                                   NodeUtil.getSpan(that).toString()); 
    438437                    return new TypeCheckerResult(that,err); 
    439438                } 
     
    446445                } 
    447446                else{ 
    448                     String err_message = "Exponentiation followed by subscripting is illegal"; 
     447                    String err_message = "Exponentiation followed by subscripting is illegal."; 
    449448                    StaticError err=TypeError.make(err_message, 
    450                                                                        new Span(NodeUtil.getSpan((ASTNode)exponent.unwrap()), 
    451                                                                                 NodeUtil.getSpan(that)).toString()); 
     449                                                   NodeUtil.getSpan(that).toString()); 
    452450                    exponent = Option.none(); 
    453451                    return new TypeCheckerResult(that,err);