[IDE-NI-MIGRATE] Migrate few tests for new inference

This commit is contained in:
Mikhail Zarechenskiy
2019-05-06 04:22:44 +03:00
parent c03dfd1522
commit c95eddbbbe
23 changed files with 46 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
fun baz(s: String?): Int {
if (s == null) return 0
return when(<info descr="Smart cast to kotlin.String">s</info>) {
+2
View File
@@ -1,3 +1,5 @@
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
<info descr="null">open</info> class A() {
fun foo() {
if (this is B) {
+2
View File
@@ -1,3 +1,5 @@
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
fun foo(s: String) = s.length
fun baz(s: String?, r: String?): Int {