Without knowing the exact error message I can only...
# announcements
b
Without knowing the exact error message I can only guess. The problem is that you declare
testImp
to be of type
Operator<*>
. Kotlin therefore can no longer check whether you are allowed to pass a
String
. You can either change it to
Operator<String>
or just let the compiler infere the type
val testImp = TestOperator()