aboutsummaryrefslogtreecommitdiff
path: root/samples/Ceylon/Foo.ceylon
blob: dc35686f5746a10fff8dc90075c8ffb97661d950 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
doc "Test function for Ceylon"
by  "Enrique"
shared void test() {
  print("test");
}

doc "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;
    }
}