Show
Ignore:
Timestamp:
07/14/09 14:26:14 (4 months ago)
Author:
dr2chase
Message:

Simple method definition and invocation

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/ProjectFortress/not_working_compiler_tests/FieldAccess.fss

    r3936 r3952  
    2626trait S extends {T,U} end 
    2727 
    28 object O(a:String) extends S end; 
     28object O(a:String) extends S 
     29  val():String = a 
     30end; 
     31 
    2932object Q(b:String, c:String) extends U end; 
    3033 
    3134(* Field ref not yet implemented, sigh. *) 
    32 f(o:O):() = jPrintln(o.a) 
     35f(o:O):() =   jPrintln(o.a)  
    3336f(o:Z):() = jPrintln("Hi!") 
    3437