Burkhard
10/31/2018, 11:47 AMtestImp
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()