LastExceed
03/06/2020, 8:54 PMinterface MyInterface<T> {} //interface declaration
class MyClass<T> : MyInterface<String> {} //class declaration and interface implementation
val x = MyClass<String>() //class construction
fun <T> foo() {} //function declaration
val y = foo<String>() //function call
type parameters are always specified after the name, except in the case of function declarations. why this inconsistency? why isnt the syntax for it like this
fun foo<T>() {}
to be consistent ?ilya.gorbunov
03/07/2020, 5:01 PMfun <T> T.foo(): T