Support "-no-reflect" in "kotlin" command

#KT-13491 Fixed
This commit is contained in:
Alexander Udalov
2016-08-17 13:08:41 +03:00
parent 902232c8ad
commit 3298649bd7
3 changed files with 38 additions and 4 deletions
+11
View File
@@ -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")
}
}