Kotlin: Add FP test cases for autoboxing query

This commit is contained in:
Tamas Vajk
2022-11-16 11:51:36 +01:00
parent c70f3d35d0
commit 0d9e28012e
3 changed files with 7 additions and 0 deletions

View File

@@ -0,0 +1 @@
| Test.kt:3:17:3:17 | x | This expression is implicitly unboxed. |

View File

@@ -0,0 +1 @@
Violations of Best Practice/legacy/AutoBoxing.ql

View File

@@ -0,0 +1,5 @@
fun foo(x: Int?) {
if (x != null) {
println(x)
}
}