Open kingjon3377 opened 7 years ago
This is somewhat related to https://github.com/ceylon/ceylon/issues/6839 and https://github.com/ceylon/ceylon/issues/6870. How static values of generic classes are supposed to work isn't yet clear.
Note that if we make temp
shared
, this also fails:
class Mwe<Type> {
shared static String temp = "xyzzy";
shared new() {
process.writeLine(temp);
}
}
This is somewhat related to https://github.com/ceylon/ceylon/issues/6839 and https://github.com/ceylon/ceylon/issues/6870. How static values of generic classes are supposed to work isn't yet clear.
Doesn't really look related to me. It seems pretty clear that this code should be allowed, and what it should do. I don't see what's unclear in this case.
Of course it should be allowed. The question is whether or not static value getters should have parameters for types.
This code
fails to compile in the command-line distribution with the following output:
ceylon --version
reportsceylon version 1.3.2 754a09a (Smile Tolerantly)
, and this is on Mac OS X Sierra, with Ceylon installed via Homebrew. The code compiles fine in the IntelliJ IDE.