mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
7 lines
298 B
Plaintext
Vendored
7 lines
298 B
Plaintext
Vendored
>>> val x: Pair<Any?, Any?> = null to null
|
|
>>> fun Any.string() = this as String
|
|
>>> if (x.first != null) x.first.string()
|
|
error: smart cast to 'Any' is impossible, because 'x.first' is a public API property declared in different module
|
|
if (x.first != null) x.first.string()
|
|
^
|