mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-13 15:53:49 +00:00
27 lines
740 B
Kotlin
27 lines
740 B
Kotlin
package f
|
|
|
|
fun f() {
|
|
class LocalClass() {
|
|
{
|
|
val <!UNUSED_VARIABLE!>x1<!> = "" // ok: unused
|
|
|
|
fun loc1(): Int {
|
|
val <!UNUSED_VARIABLE!>x1_<!> = "" // ok: unused
|
|
<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>
|
|
}
|
|
|
|
fun f() {
|
|
val <!UNUSED_VARIABLE!>x2<!> = "" // error: should be UNUSED_VARIABLE
|
|
|
|
fun loc2(): Int {
|
|
val <!UNUSED_VARIABLE!>x2_<!> = "" // error: should be UNUSED_VARIABLE
|
|
<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>
|
|
}
|
|
|
|
val v: String
|
|
get() {
|
|
val <!UNUSED_VARIABLE!>x3<!> = "" // ok: unused
|
|
<!NO_RETURN_IN_FUNCTION_WITH_BLOCK_BODY!>}<!>
|
|
}
|
|
}
|