Support "-no-reflect" in "kotlin" command
#KT-13491 Fixed
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user