mirror of
				https://github.com/KevinMidboe/linguist.git
				synced 2025-10-29 17:50:22 +00:00 
			
		
		
		
	See ceylon/ceylon-spec#585 for the new annotation syntax and ceylon/ceylon-spec#574 for the new string interpolation syntax.
		
			
				
	
	
		
			16 lines
		
	
	
		
			332 B
		
	
	
	
		
			Ceylon
		
	
	
	
	
	
			
		
		
	
	
			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;
 | 
						|
    }
 | 
						|
}
 |