Skip to content

Instantly share code, notes, and snippets.

@adragomir
Created August 30, 2010 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adragomir/557539 to your computer and use it in GitHub Desktop.
Save adragomir/557539 to your computer and use it in GitHub Desktop.
Int: cover {
seconds2minutes: func -> This { return this / 60 }
}
main: func -> Int {
"hello world" println()
}
@adragomir
Copy link
Author

$ rock ref.ooc

sdk/lang/Buffer.ooc:160:27 INFO Score of ### = -1 (### vs ###)
        if (c > size) c = size
                          ~~~~

sdk/lang/Buffer.ooc:540:34 INFO Score of ### = -1 (### vs ###)
        if(start >= end) start = end
                                 ~~~

sdk/lang/Buffer.ooc:160:27 INFO Score of ### = -1 (### vs ###)
        if (c > size) c = size
                          ~~~~

sdk/lang/Buffer.ooc:540:34 INFO Score of ### = -1 (### vs ###)
        if(start >= end) start = end
                                 ~~~

./ref.ooc:2:49 ERROR Invalid use of operator / between operands of type Int and SSizeT

  seconds2minutes: func -> This { return this / 60 }
                                                ~~  
[FAIL]
[Exception]: 
Abort trap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment