Files
kotlin-fork/idea/testData/android/lintQuickfix/targetVersionCheck/destructuringDeclaration.kt.as31
T
2018-04-11 16:28:19 +03:00

12 lines
406 B
Plaintext
Vendored

// INTENTION_TEXT: Surround with if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) { ... }
// INSPECTION_CLASS: com.android.tools.idea.lint.AndroidLintNewApiInspection
import android.app.Activity
import android.graphics.drawable.VectorDrawable
data class ValueProvider(var p1: VectorDrawable, val p2: Int)
val activity = Activity()
fun foo() {
val (v1, v2) = ValueProvider(<caret>VectorDrawable(), 0)
}