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.
This commit is contained in:
Lucas Werkmeister
2014-10-02 12:10:11 +02:00
parent c203781e1b
commit ded4672ccc

View File

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