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
karelpeeters
10/09/2019, 9:33 PM
Don't post the same question is multiple channels, it just splits the discussion and it's not like #C0922A726 and #C0B8MA7FA have a lot of different people in them.
u
ursus
10/09/2019, 9:34 PM
assumptions were wrong in that one, this is the clearest case
k
karelpeeters
10/09/2019, 9:34 PM
You can edit comments as well.
u
ursus
10/09/2019, 9:40 PM
Tbh this feels like a bug/uynexpected behaviour so more appropriate here