For the following function, I need to invoke `bar`...
# compiler
e
For the following function, I need to invoke
bar
with both types specified. Why can't
Parent
be inferred from the receiver?
Copy code
inline fun <Parent, reified Child : Parent> Foo<Parent>.bar()
y
You can (I think) do:
myFoo.bar<_, ChildType>()
_ is a placeholder which tells the compiler to try to infer the type argument