Shan
12/09/2018, 9:09 PManything that extends x
? For example I have a data class here (using tornadofx library, it provides the ViewModel class) which I would like for the lamda to take anything which extends a ViewModel. data class CustomMenuItem (val name: String, val action: (E ? extends ViewModel) -> Unit)
diesieben07
12/09/2018, 9:09 PMaction: (ViewModel) -> Unit
passes that requirement.Shan
12/09/2018, 9:10 PMdiesieben07
12/09/2018, 9:11 PMShan
12/09/2018, 9:11 PMShan
12/09/2018, 9:23 PMdiesieben07
12/09/2018, 9:23 PM