Create expect/actual: improve error hint message

#KT-33754 Fixed
This commit is contained in:
Dmitry Gridin
2019-09-06 19:45:19 +07:00
parent 773e4764b1
commit a552f06526
14 changed files with 56 additions and 48 deletions
@@ -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,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
@@ -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