Disable AllowResultInReturnType feature
#KT-40843
This commit is contained in:
@@ -1 +1,4 @@
|
||||
OK
|
||||
compiler/testData/cli/jvm/resultInReturnType.kt:1:5: error: 'kotlin.Result' cannot be used as a return type
|
||||
fun foo() = Result.success(42)
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -7,4 +7,7 @@ This mode is not recommended for production use,
|
||||
as no stability/compatibility guarantees are given on
|
||||
compiler or generated code. Use it at your own risk!
|
||||
|
||||
OK
|
||||
compiler/testData/cli/jvm/resultInReturnType.kt:1:5: error: 'kotlin.Result' cannot be used as a return type
|
||||
fun foo() = Result.success(42)
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user