Update tests, which check -X... flag in LauncherScriptTest
Previously, -Xallow-result-return-type was used to test, whether the launcher parses -X... flags correctly, however, it has no effect - returning Result is allowed anyway. So, instead, use -Xno-inline and check runtime behavior.
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
|
||||
fun f() : Result<Int> = Result.success(42)
|
||||
|
||||
println(f().getOrNull())
|
||||
@@ -1,5 +0,0 @@
|
||||
@file:CompilerOptions("-Xallow-result-return-type")
|
||||
|
||||
fun f() : Result<Int> = Result.success(42)
|
||||
|
||||
println(f().getOrNull())
|
||||
+1
@@ -0,0 +1 @@
|
||||
println("OK")
|
||||
@@ -0,0 +1,3 @@
|
||||
@file:CompilerOptions("-Xno-inline")
|
||||
|
||||
println("OK")
|
||||
Reference in New Issue
Block a user