Postpone enabling JSpecify annotations by default until 2.0
Thus, KT-55586 is being postponed, too. The reasoning behind this change is that the language-committee issue has not been approved yet, so new annotation package can't be enabled by default, but it seems that it doesn't make sense having a different behavior for the old one but at least that would make them work consistently, so we postpone them, too.
This commit is contained in:
committed by
Space Team
parent
53c488079f
commit
0775748aa9
+5
-2
@@ -1,4 +1,7 @@
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: error: null can not be a value of a non-null type String
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:2:11: warning: type mismatch: inferred type is Nothing? but String was expected
|
||||
a.foo(null)
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
compiler/testData/cli/jvm/jspecifyUsage.kt:3:5: warning: unsafe use of a nullable receiver of type String?
|
||||
a.bar().hashCode()
|
||||
^
|
||||
OK
|
||||
|
||||
Reference in New Issue
Block a user