Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
0114e07472e7613fb80622821692cfa9e6922f31
/
.
/
compiler
/
testData
/
launcher
/
reflectionUsage.kt
blob: 1cb741e4a765a974ffff811928d06ed86e7d9bfd [
file
] [
log
] [
blame
]
class
Foo
(
val bar
:
String
?)
fun main
()
{
try
{
if
(
Foo
::
bar
.
returnType
.
isMarkedNullable
)
{
print
(
"Foo#bar is nullable"
)
}
}
catch
(
e
:
KotlinReflectionNotSupportedError
)
{
print
(
"no reflection"
)
}
}