Files
kotlin/compiler/testData/repl/modules/kt10001.repl
2018-09-10 06:41:49 +03:00

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()
^