Do not report unhelpful diagnostic for unresolved call inside inline function

#KT-14887 Fixed
This commit is contained in:
Alexander Udalov
2016-10-26 16:29:37 +03:00
parent eacf64e4db
commit 525e6e53fe
4 changed files with 20 additions and 2 deletions
@@ -0,0 +1,8 @@
<!NOTHING_TO_INLINE!>inline<!> fun foo() {
<!UNRESOLVED_REFERENCE!>unresolved<!>().<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>another<!>
<!UNRESOLVED_REFERENCE!>unresolved<!>().<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>another<!>()
}
fun main(args: Array<String>) {
foo()
}
@@ -0,0 +1,4 @@
package
public inline fun foo(): kotlin.Unit
public fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
@@ -10779,6 +10779,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("kt14887.kt")
public void testKt14887() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inline/nonPublicMember/kt14887.kt");
doTest(fileName);
}
@TestMetadata("localClass.kt")
public void testLocalClass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inline/nonPublicMember/localClass.kt");