Show
Ignore:
Timestamp:
07/06/09 12:43:14 (5 months ago)
Author:
dr2chase
Message:

Fixed naming somewhat; can overload on general trait and object types now

Location:
trunk/ProjectFortress/other_compiler_tests
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/other_compiler_tests/ATrait.fss

    r3906 r3922  
    1717 
    1818component ATrait 
     19 
    1920import java com.sun.fortress.nativeHelpers.{simplePrintln.nativePrintln => jPrintln} 
    2021export Executable 
    2122 
    22 trait T end 
    23 trait U end 
     23trait Z end 
     24trait T extends Z end 
     25trait U extends Z end 
    2426trait S extends {T,U} end 
    2527 
    2628object O() extends S end; 
     29object Q() extends U end; 
    2730 
    28 f(o:O):() = jPrintln("Hi!") 
     31f(o:O):() = jPrintln("Ha!") 
     32f(o:Z):() = jPrintln("Hi!") 
     33 
     34g(x:Z):() = f(x) 
    2935 
    3036run():() = do 
    31   f(O()) 
     37  g(O()) 
     38  g(Q()) 
    3239  (* jPrintln("Hi!") *) 
    3340end 
  • trunk/ProjectFortress/other_compiler_tests/TO.test

    r3906 r3922  
    1717link 
    1818run 
    19 run_out_contains=Hi! 
     19run_out_WImatches=Ha! Hi!