mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Add sample file for Ceylon
This commit is contained in:
15
samples/ceylon/Foo.ceylon
Normal file
15
samples/ceylon/Foo.ceylon
Normal file
@@ -0,0 +1,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;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user