JS: add test to prove that #KT-5051 is no more reproducible

This commit is contained in:
Alexey Andreev
2016-10-11 12:09:40 +03:00
parent 6d230aad35
commit f22a507e39
3 changed files with 35 additions and 0 deletions
@@ -0,0 +1,9 @@
package foo
interface I {
<!JS_NAME_CLASH!>fun foo()<!> = 23
}
class Sub : I {
<!JS_NAME_CLASH!>var foo<!> = 42
}
@@ -0,0 +1,20 @@
package
package foo {
public interface I {
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open fun foo(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
public final class Sub : foo.I {
public constructor Sub()
public final var foo: kotlin.Int
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun foo(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}
}
@@ -415,6 +415,12 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
doTest(fileName);
}
@TestMetadata("propertyAndMethodInImplementor.kt")
public void testPropertyAndMethodInImplementor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/name/propertyAndMethodInImplementor.kt");
doTest(fileName);
}
@TestMetadata("propertyAndMethodInSubclass.kt")
public void testPropertyAndMethodInSubclass() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/name/propertyAndMethodInSubclass.kt");