Join Slack
Powered by
I have this structure for generic types, but it ob...
# getting-started
c
Chris B
08/11/2024, 11:16 AM
I have this structure for generic types, but it obviously doesn't work. It's probably something simple, but I'm not sure why.
f
fmasa
08/11/2024, 11:31 AM
You are narrowing the type of
pvm
argument of method
foo
fmasa
08/11/2024, 11:32 AM
It's hard to tell what you are trying to achieve, but the method override as is against LSP
c
Chris B
08/11/2024, 11:34 AM
Ah, yes, that was it. It was very hard to tell when the classes were scattered across four different files.
Chris B
08/11/2024, 11:34 AM
Thank you so much.
🙇 1
y
Youssef Shoaib [MOD]
08/11/2024, 2:45 PM
I think what you meant was
abstract fun foo(pvm: C<T>)
plus1
1
Open in Slack
Previous
Next