Files
linguist/samples/Ceylon/Foo.ceylon
Lucas Werkmeister ded4672ccc Update Ceylon sample file
See ceylon/ceylon-spec#585 for the new annotation syntax and ceylon/ceylon-spec#574 for the new string interpolation syntax.
2014-10-02 12:10:11 +02:00

16 lines
332 B
Ceylon

"Test function for Ceylon"
by ("Enrique")
shared void test() {
print("test");
}
"Test class for Ceylon"
shared class Test(name) satisfies Comparable<Test> {
shared String name;
shared actual String string = "Test ``name``.";
shared actual Comparison compare(Test other) {
return name<=>other.name;
}
}