mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Kotlin: Add a Kotlin 2 copy of the testsuite
This commit is contained in:
@@ -0,0 +1 @@
|
||||
Likely Bugs/Nullness/NullMaybe.ql
|
||||
7
java/ql/test-kotlin2/query-tests/NullMaybe/Test.kt
Normal file
7
java/ql/test-kotlin2/query-tests/NullMaybe/Test.kt
Normal file
@@ -0,0 +1,7 @@
|
||||
fun fn(b: Boolean) {
|
||||
var d: Double? = null
|
||||
if (b) {
|
||||
d = 1.0
|
||||
}
|
||||
println(d!!)
|
||||
}
|
||||
Reference in New Issue
Block a user