mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
UI is extracted from k1 implementation Java <-> kotlin interop is done through language agnostic api: each language implementation knows about usages in that language only + there are changeInfo converters which can transform javaChangeInfo <-> kotlinChangeInfo KTIJ-21132 GitOrigin-RevId: 03bfb8baeffb9e5691673f8e482395191332f89b
12 lines
290 B
Kotlin
12 lines
290 B
Kotlin
fun <T: Any> foo(<caret>_x1: T? = null, _x2: Double?, _x3: ((T) -> T)?) {
|
|
foo(2, 3.5, null);
|
|
val y1 = _x1;
|
|
val y2 = _x2;
|
|
val y3 = _x3;
|
|
foo(_x3 = null, _x1 = 2, _x2 = 3.5);
|
|
}
|
|
|
|
fun bar() {
|
|
foo(_x1 = 2, _x2 = 3.5, _x3 = null);
|
|
foo(_x3 = null, _x1 = 2, _x2 = 3.5);
|
|
} |