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