https://kotlinlang.org logo
#announcements
Title
# announcements
b

buremba

10/31/2018, 11:41 AM
However the Kotlin equivalent doesn't compile:
Copy code
object Test {
    internal interface Operator<T> {
        fun map(col: String, value: T): String
    }

    internal class TestOperator : Operator<String> {
        override fun map(col: String, value: String): String {
            return "test"
        }
    }

    @JvmStatic
    fun main(args: Array<String>) {
        val testImp : Operator<*> = TestOperator()
        testImp.map("test", "test")
    }
}