Create expect/actual: improve error hint message
#KT-33754 Fixed
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected class in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,class A
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from testModule_Common:,Some,A
|
||||
// DISABLE-ERRORS
|
||||
|
||||
interface Some
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: Some){...}
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from testModule_Common:,Some
|
||||
// DISABLE-ERRORS
|
||||
|
||||
class Some
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: List<T>) = TODO()
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from testModule_Common:,Some
|
||||
// DISABLE-ERRORS
|
||||
|
||||
interface Some
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: List<Some>){...}
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from testModule_Common:,Some
|
||||
// DISABLE-ERRORS
|
||||
|
||||
class Some
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: List<T>){...}
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from testModule_Common:,Some
|
||||
// DISABLE-ERRORS
|
||||
|
||||
interface Some
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo(some: List<T>){...}
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from testModule_Common:,Some
|
||||
// DISABLE-ERRORS
|
||||
|
||||
interface Some
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected property in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,actual val foo: Some = TODO()
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from testModule_Common:,Some
|
||||
// DISABLE-ERRORS
|
||||
|
||||
interface Some
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected property in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,actual val <T>Some<T>.foo: Some<T> get() = TODO()
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from testModule_Common:,Some
|
||||
// DISABLE-ERRORS
|
||||
|
||||
class Some<T>
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected property in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,actual val <T: A> Some<T>.foo: Some<T> get() = TODO()
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from testModule_Common:,A
|
||||
// DISABLE-ERRORS
|
||||
interface A
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected function in common module testModule_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun foo() = ""
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from testModule_Common:,SomeString
|
||||
// DISABLE-ERRORS
|
||||
|
||||
typealias SomeString = String
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected function in common module proj_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun createList() = ArrayList()
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from proj_Common:,ArrayList
|
||||
// DISABLE-ERRORS
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
// "Create expected function in common module proj_Common" "true"
|
||||
// SHOULD_FAIL_WITH: You cannot create the expect declaration from:,fun createList() = ArrayList()
|
||||
// SHOULD_FAIL_WITH: Some types are not accessible from proj_Common:,ArrayList
|
||||
// DISABLE-ERRORS
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
Reference in New Issue
Block a user