around M5-M6 Kotlin gained support for calling java SAM's (Single Abstract Methods, think Runnable Interface) with a lambda function. This allowed you to do
//kotlin code
SwingUtilities.invokeLater{
//some code here
}
//is the same as this code
SwingUtilities.invokeLater(object : Runnable {
override fun run() {
//some code here
}
}
However if the SAM is a kotlin Trait, this does not work for some reason... are their plans to allow Kotlin SAM Traits to be called like Lambda's
Thank you - Matt