3298649bd7
#KT-13491 Fixed
12 lines
266 B
Kotlin
Vendored
12 lines
266 B
Kotlin
Vendored
class Foo(val bar: String?)
|
|
|
|
fun main(args: Array<String>) {
|
|
try {
|
|
if (Foo::bar.returnType.isMarkedNullable) {
|
|
print("Foo#bar is nullable")
|
|
}
|
|
} catch (e: KotlinReflectionNotSupportedError) {
|
|
print("no reflection")
|
|
}
|
|
}
|