21 lines
368 B
Kotlin
21 lines
368 B
Kotlin
// !forceNotNullTypes: false
|
|
// !specifyLocalVariableTypeByDefault: true
|
|
class Library {
|
|
fun call() {
|
|
}
|
|
|
|
fun getString(): String? {
|
|
return ""
|
|
}
|
|
}
|
|
|
|
class User {
|
|
fun main() {
|
|
val lib: Library = Library()
|
|
lib.call()
|
|
lib.getString()!!.isEmpty()
|
|
|
|
Library().call()
|
|
Library().getString()!!.isEmpty()
|
|
}
|
|
} |