Prohibit illegal identifiers in packages in JS BE
See KT-18032
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package <!INVALID_CHARACTERS!>`//`<!>
|
||||
|
||||
class A
|
||||
@@ -0,0 +1,11 @@
|
||||
package
|
||||
|
||||
package `//` {
|
||||
|
||||
public final class A {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
}
|
||||
}
|
||||
@@ -491,6 +491,12 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("illegalPackageName.kt")
|
||||
public void testIllegalPackageName() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/name/illegalPackageName.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("jsNameAndOverridden.kt")
|
||||
public void testJsNameAndOverridden() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameAndOverridden.kt");
|
||||
|
||||
Reference in New Issue
Block a user