object dataSource extends HikariDataSource(){
shared void setup(){
value myds = PGSimpleDataSource();
myds.databaseName = "sakila";
myds.user = "postgres";
myds.password = "postgres";
myds.url = "jdbc:postgresql://localhost:5432/sakila";
dataSource = myds;
}
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/a9344da3-e971-4e60-b857-9ef265d5da6a%40googlegroups.com.
class A(s){
shared default String s;
}
object s extends A("S"){
shared actual String s = "p";
}
What I'm still failing to understand is why there is no name collision for object s extends A("S") and shared actual String s = "p";
class A(){
//shared default String s;
}
object s extends A(){
shared String s = "p";
}