Files
kotlin-fork/compiler/testData/ir/sourceRanges/declarations/topLevelProperties.kt
T
Dmitry Petrov 7dd906db44 KT-28324 More exact startOffset for function/constructor declarations
Function/constructor declaration start offset is the start offset of the
corresponding declaration token, if available.
2018-11-22 10:09:31 +03:00

69 lines
636 B
Kotlin
Vendored

package test
val test0 = 42
/**
* comment
*/
val test1 = 42
@Suppress(
"UNUSED_VARIABLE"
)
val test2 = 42
private
val test3 = 42
val test4 get() = 42
val test5
get() = 42
val test6
/**
* comment
*/
get() = 42
val test7
@Suppress(
"UNUSED_VARIABLE"
)
get() = 42
var test8 = 42
var test9 = 42; private set
var test10 = 42
private set
var test11 = 42
set(value) { field = value }
var test12 = 42
/**
* comment
*/
set(value) { field = value }
var test13 = 42
@Suppress(
"UNUSED_VARIABLE"
)
set(value) { field = value }