Show
Ignore:
Timestamp:
01/07/09 18:53:22 (11 months ago)
Author:
EricAllen
Message:

Added a type normalizer to improve presentation of types in error messages.
Got the type checker working over more of our first 20 compiled programs.
Added corresponding tests to CompilerJUTests.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/src/com/sun/fortress/compiler/CompilerJUTest.scala

    r3277 r3292  
    11/******************************************************************************* 
    2     Copyright 2008 Sun Microsystems, Inc., 
     2    Copyright 2009 Sun Microsystems, Inc., 
    33    4150 Network Circle, Santa Clara, California 95054, U.S.A. 
    44    All rights reserved. 
     
    172172  } 
    173173 
     174  def testXXXCompiled13() = { 
     175    val expected = 
     176      STATIC_TESTS_DIR + "/XXXCompiled13.fss:20:3-35\n" + 
     177      "    Function body has type FlatString->(), but declared return type is ()"  
     178    Shell.assertStaticErrors(compile("XXXCompiled13.fss"), expected) 
     179  } 
     180 
     181 
    174182  def testXXXCompiled14() = { 
    175183    val expected =