mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 08:31:35 +00:00
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
18 lines
701 B
Plaintext
Vendored
18 lines
701 B
Plaintext
Vendored
public final class LocalDeclarationsKt {
|
|
public static final fun foo() : boolean {
|
|
public static final class Local {
|
|
public fun LocalDeclarationsKt$foo$Local() = UastEmptyExpression
|
|
}
|
|
var bar: <ErrorType> = fun () {
|
|
return <init>()
|
|
}
|
|
var baz: kotlin.jvm.functions.Function0<? extends kotlin.Unit> = fun () {
|
|
<init>()
|
|
}
|
|
var someLocalFun: kotlin.jvm.functions.Function2<? super java.lang.Integer,? super java.lang.String,? extends java.lang.Integer> = fun (@org.jetbrains.annotations.NotNull var text: java.lang.String) {
|
|
return 42
|
|
}
|
|
return bar() == <init>()
|
|
}
|
|
}
|