ADT
        aaron-thesis
        arm-eh
        ast-experimental
        cleanup-dtors
        deferred_resn
        demangler
        enum
        forall-pointer-decay
        jacob/cs343-translation
        jenkins-sandbox
        new-ast
        new-ast-unique-expr
        new-env
        no_list
        persistent-indexer
        pthread-emulation
        qualifiedEnum
        resolv-new
        with_gc
      
      
        
          | 
            Last change
 on this file since e706bfd was             7493339, checked in by Rob Schluntz <rschlunt@…>, 9 years ago           | 
        
        
          | 
             
incorporate Peter's feedback, handle many TODOs 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            214 bytes
           | 
        
      
      
| Rev | Line |   | 
|---|
| [7493339] | 1 | int sum(int x, int y){
 | 
|---|
 | 2 |   return x+y;
 | 
|---|
 | 3 | }
 | 
|---|
 | 4 | forall(ttype Params | { int sum(int, Params); })
 | 
|---|
 | 5 | int sum(int x, int y, Params rest) {
 | 
|---|
 | 6 |   return sum(x+y, rest);
 | 
|---|
 | 7 | }
 | 
|---|
 | 8 | int main() {
 | 
|---|
 | 9 |   printf("%d\n", sum(10, 20, 30, 40, 50, 60));
 | 
|---|
 | 10 | }
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.