mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +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
12 lines
181 B
Kotlin
Vendored
12 lines
181 B
Kotlin
Vendored
fun foo(): Boolean {
|
|
class Local
|
|
fun bar() = Local()
|
|
|
|
val baz = fun() {
|
|
Local()
|
|
}
|
|
|
|
fun Int.someLocalFun(text: String) = 42
|
|
|
|
return bar() == Local()
|
|
} |