Why does this discrepancy vs java exist? ``` clas...
# announcements
u
Why does this discrepancy vs java exist?
Copy code
class Bar : Foo<Quax>() 

abstract class Foo<T>

internal class Quax
error is public subclass exposes internal supertype argument
and this java works
Copy code
public class Rah extends Meh<Ohe> {
}

class Ohe {
}

public abstract class Meh<T> {
}
When internal is looser modifier than package private
k
Don't post the same question is multiple channels, it just splits the discussion and it's not like #general and #getting-started have a lot of different people in them.
u
assumptions were wrong in that one, this is the clearest case
k
You can edit comments as well.
u
Tbh this feels like a bug/uynexpected behaviour so more appropriate here