mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
Kotlin: Add a Kotlin 2 copy of the testsuite
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
fun main() {
|
||||
f(null)
|
||||
f(true)
|
||||
f(false)
|
||||
}
|
||||
|
||||
fun f(x: Boolean?) {
|
||||
if(x == true) {
|
||||
println("Yes")
|
||||
} else {
|
||||
println("No")
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Violations of Best Practice/Boolean Logic/SimplifyBoolExpr.ql
|
||||
Reference in New Issue
Block a user