LV 2.0: update some CLI tests with warnings to use DIVISION_BY_ZERO warning
This commit is contained in:
committed by
Space Team
parent
e5906a8a3a
commit
e4b70e7788
Vendored
+6
-12
@@ -1,14 +1,8 @@
|
||||
warning: ATTENTION!
|
||||
This build uses unsafe internal compiler arguments:
|
||||
|
||||
-XXLanguage:+EnableDfaWarningsInK2
|
||||
|
||||
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!
|
||||
|
||||
error: warnings found and -Werror specified
|
||||
compiler/testData/cli/jvm/werror.kt:2:6: warning: unnecessary non-null assertion (!!) on a non-null receiver of type 'kotlin/String'.
|
||||
s!!
|
||||
^
|
||||
compiler/testData/cli/jvm/werror.kt:2:13: warning: division by zero.
|
||||
println(a / 0)
|
||||
^
|
||||
compiler/testData/cli/jvm/werror.kt:3:13: warning: division by zero.
|
||||
println(b / 0)
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
|
||||
Reference in New Issue
Block a user