[PSI, FE] Support functional types

This commit is contained in:
Anastasiya Shadrina
2021-08-12 01:15:58 +07:00
committed by TeamCityServer
parent e53cee77a3
commit e3f987459c
45 changed files with 507 additions and 40 deletions
@@ -0,0 +1,10 @@
// FIR_IDENTICAL
class Button
class ClickEvent
typealias ClickHandler = context(Button) (ClickEvent) -> Unit
fun handleClick(clickHandler: ClickHandler) {
clickHandler(Button(), ClickEvent())
}