Introduce "Unused result of data class copy" inspection
#KT-34121 Fixed
This commit is contained in:
committed by
klunnii
parent
ae6d89b100
commit
bc580d2fd9
@@ -0,0 +1,11 @@
|
||||
// FIX: none
|
||||
// WITH_RUNTIME
|
||||
fun main() {
|
||||
val o = Foo("")
|
||||
o.<caret>copy(prop = "New")
|
||||
bar(o)
|
||||
}
|
||||
|
||||
data class Foo(val prop: String)
|
||||
|
||||
fun bar(foo: Foo) {}
|
||||
Reference in New Issue
Block a user