54285d328f
In case of result difference the `-ide`-suffixed testdata is used. Actually the difference in results is more likely to be a bug but currently we are fixating at least some behaviour to protect from unexpected regressions in Ultra Light Classes. `object Local` were removed because there is no local objects in actual Kotlin syntax
35 lines
785 B
Kotlin
Vendored
35 lines
785 B
Kotlin
Vendored
fun global(a: Int, b: Float) {}
|
|
|
|
fun withDefault(c: Int = 1, d: String = "aaa") {}
|
|
|
|
fun String.withReceiver(a: Int, b: Float) {}
|
|
|
|
fun call() {
|
|
global(b = 2.2F, a = 2)
|
|
withDefault(d = "bbb")
|
|
"abc".withReceiver(1, 1.2F)
|
|
Math.atan2(1.3, 3.4)
|
|
unresolvedMethod("param1", "param2")
|
|
java.lang.String.format("%i %i %i", 1, 2, 3)
|
|
java.lang.String.format("%i %i %i", arrayOf(1, 2, 3))
|
|
java.lang.String.format("%i %i %i", arrayOf(1, 2, 3), arrayOf(4, 5, 6))
|
|
java.lang.String.format("%i %i %i", *"".chunked(2).toTypedArray())
|
|
|
|
with(A()) {
|
|
"def".with2Receivers(8, 7.0F)
|
|
}
|
|
|
|
}
|
|
|
|
class A {
|
|
|
|
fun String.with2Receivers(a: Int, b: Float) {}
|
|
|
|
}
|
|
|
|
open class Parent(a: String, b: Int)
|
|
|
|
fun objectLiteral() {
|
|
|
|
object : Parent(b = 1, a = "foo") { }
|
|
} |