[JS FIR] Enable warnings and infos for JS FIR tests
This commit is contained in:
committed by
Space Team
parent
862be5a787
commit
b1465fbfb8
+14
-14
@@ -1,29 +1,29 @@
|
||||
// !DIAGNOSTICS: -REDUNDANT_NULLABLE
|
||||
|
||||
fun test(d: Any, dl: Collection<dynamic>) {
|
||||
d as <!DYNAMIC_NOT_ALLOWED!>dynamic<!>
|
||||
d as <!DYNAMIC_NOT_ALLOWED!>dynamic?<!>
|
||||
d <!USELESS_CAST!>as <!DYNAMIC_NOT_ALLOWED!>dynamic<!><!>
|
||||
d <!USELESS_CAST!>as <!DYNAMIC_NOT_ALLOWED!>dynamic?<!><!>
|
||||
|
||||
d as? <!DYNAMIC_NOT_ALLOWED!>dynamic<!>
|
||||
d as? <!DYNAMIC_NOT_ALLOWED!>dynamic?<!>
|
||||
d <!USELESS_CAST!>as? <!DYNAMIC_NOT_ALLOWED!>dynamic<!><!>
|
||||
d <!USELESS_CAST!>as? <!DYNAMIC_NOT_ALLOWED!>dynamic?<!><!>
|
||||
|
||||
d is <!DYNAMIC_NOT_ALLOWED!>dynamic<!>
|
||||
d is <!DYNAMIC_NOT_ALLOWED!>dynamic?<!>
|
||||
<!USELESS_IS_CHECK!>d is <!DYNAMIC_NOT_ALLOWED!>dynamic<!><!>
|
||||
<!USELESS_IS_CHECK!>d is <!DYNAMIC_NOT_ALLOWED!>dynamic?<!><!>
|
||||
|
||||
d !is <!DYNAMIC_NOT_ALLOWED!>dynamic<!>
|
||||
d !is <!DYNAMIC_NOT_ALLOWED!>dynamic?<!>
|
||||
<!USELESS_IS_CHECK!>d !is <!DYNAMIC_NOT_ALLOWED!>dynamic<!><!>
|
||||
<!USELESS_IS_CHECK!>d !is <!DYNAMIC_NOT_ALLOWED!>dynamic?<!><!>
|
||||
|
||||
when (d) {
|
||||
is <!DYNAMIC_NOT_ALLOWED!>dynamic<!> -> {}
|
||||
is <!DYNAMIC_NOT_ALLOWED!>dynamic?<!> -> {}
|
||||
!is <!DYNAMIC_NOT_ALLOWED!>dynamic<!> -> {}
|
||||
!is <!DYNAMIC_NOT_ALLOWED!>dynamic?<!> -> {}
|
||||
<!USELESS_IS_CHECK!>is <!DYNAMIC_NOT_ALLOWED!>dynamic<!><!> -> {}
|
||||
<!USELESS_IS_CHECK!>is <!DUPLICATE_LABEL_IN_WHEN, DYNAMIC_NOT_ALLOWED!>dynamic?<!><!> -> {}
|
||||
<!USELESS_IS_CHECK!>!is <!DYNAMIC_NOT_ALLOWED!>dynamic<!><!> -> {}
|
||||
<!USELESS_IS_CHECK!>!is <!DUPLICATE_LABEL_IN_WHEN, DYNAMIC_NOT_ALLOWED!>dynamic?<!><!> -> {}
|
||||
}
|
||||
|
||||
dl as List<dynamic>
|
||||
dl is List<dynamic>
|
||||
<!USELESS_IS_CHECK!>dl is List<dynamic><!>
|
||||
|
||||
when (dl) {
|
||||
is List<dynamic> -> {}
|
||||
<!USELESS_IS_CHECK!>is List<dynamic><!> -> {}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
// !MARK_DYNAMIC_CALLS
|
||||
|
||||
// !DIAGNOSTICS: -ERROR_SUPPRESSION
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.internal.DynamicExtension
|
||||
fun dynamic.onDynamicFun() = 1
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// !MARK_DYNAMIC_CALLS
|
||||
|
||||
// !DIAGNOSTICS: -ERROR_SUPPRESSION
|
||||
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
|
||||
@kotlin.internal.DynamicExtension
|
||||
fun dynamic.onDynamicFun() = 1
|
||||
@@ -25,4 +25,4 @@ fun test(d: dynamic, a: Any?) {
|
||||
a.<!UNRESOLVED_REFERENCE!>onDynamicProperty<!>
|
||||
}
|
||||
|
||||
fun <T> eatT(<!UNUSED_PARAMETER!>t<!>: T) {}
|
||||
fun <T> eatT(<!UNUSED_PARAMETER!>t<!>: T) {}
|
||||
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
// FIR_IDENTICAL
|
||||
// !OPT_IN: kotlin.js.ExperimentalJsExport
|
||||
// !RENDER_DIAGNOSTICS_MESSAGES
|
||||
import kotlin.js.JsExport
|
||||
|
||||
@JsExport
|
||||
class ClassA<T : UpperBoundInterface> {
|
||||
inner class InnerA {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@JsExport
|
||||
interface UpperBoundInterface {}
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
package
|
||||
|
||||
@kotlin.js.JsExport public final class ClassA</*0*/ T : UpperBoundInterface> {
|
||||
public constructor ClassA</*0*/ T : UpperBoundInterface>()
|
||||
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
|
||||
|
||||
public final inner class InnerA /*captured type parameters: /*0*/ T : UpperBoundInterface*/ {
|
||||
public constructor InnerA()
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
@kotlin.js.JsExport public interface UpperBoundInterface {
|
||||
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
|
||||
}
|
||||
|
||||
+11
-11
@@ -3,25 +3,25 @@
|
||||
|
||||
package foo
|
||||
|
||||
@JsExport
|
||||
fun delete() {}
|
||||
<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("delete")!>@JsExport
|
||||
fun delete() {}<!>
|
||||
|
||||
<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("instanceof")!>@JsExport
|
||||
val instanceof = 4<!>
|
||||
|
||||
<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("eval")!>@JsExport
|
||||
class eval<!>
|
||||
|
||||
@JsExport
|
||||
val instanceof = 4
|
||||
|
||||
@JsExport
|
||||
class eval
|
||||
|
||||
@JsExport
|
||||
@JsName("await")
|
||||
@JsName(<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("await")!>"await"<!>)
|
||||
fun foo() {}
|
||||
|
||||
@JsExport
|
||||
@JsName("this")
|
||||
@JsName(<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("this")!>"this"<!>)
|
||||
val bar = 4
|
||||
|
||||
@JsExport
|
||||
@JsName("super")
|
||||
@JsName(<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("super")!>"super"<!>)
|
||||
class Baz
|
||||
|
||||
@JsExport
|
||||
|
||||
compiler/testData/diagnostics/testsWithJsStdLib/export/nonConsumableIdentifiersInExportedFile.fir.kt
Vendored
+6
-6
@@ -4,19 +4,19 @@
|
||||
|
||||
package foo
|
||||
|
||||
fun delete() {}
|
||||
<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("delete")!>fun delete() {}<!>
|
||||
|
||||
val instanceof = 4
|
||||
<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("instanceof")!>val instanceof = 4<!>
|
||||
|
||||
class eval
|
||||
<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("eval")!>class eval<!>
|
||||
|
||||
@JsName("await")
|
||||
@JsName(<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("await")!>"await"<!>)
|
||||
fun foo() {}
|
||||
|
||||
@JsName("this")
|
||||
@JsName(<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("this")!>"this"<!>)
|
||||
val bar = 4
|
||||
|
||||
@JsName("super")
|
||||
@JsName(<!NON_CONSUMABLE_EXPORTED_IDENTIFIER("super")!>"super"<!>)
|
||||
class Baz
|
||||
|
||||
class Test {
|
||||
|
||||
+14
-14
@@ -7,30 +7,30 @@ package foo
|
||||
class C
|
||||
|
||||
@JsExport
|
||||
fun foo(x: C) {
|
||||
fun foo(<!NON_EXPORTABLE_TYPE("parameter; foo.C")!>x: C<!>) {
|
||||
}
|
||||
|
||||
@JsExport
|
||||
fun bar() = C()
|
||||
<!NON_EXPORTABLE_TYPE("return; foo.C")!>@JsExport
|
||||
fun bar()<!> = C()
|
||||
|
||||
@JsExport
|
||||
val x: C = C()
|
||||
<!NON_EXPORTABLE_TYPE("property; foo.C")!>@JsExport
|
||||
val x: C<!> = C()
|
||||
|
||||
@JsExport
|
||||
var x2: C
|
||||
<!NON_EXPORTABLE_TYPE("property; foo.C")!>@JsExport
|
||||
var x2: C<!>
|
||||
get() = C()
|
||||
set(value) { }
|
||||
|
||||
@JsExport
|
||||
class A(
|
||||
val x: C,
|
||||
y: C
|
||||
<!NON_EXPORTABLE_TYPE("parameter; foo.C")!>val x: C<!>,
|
||||
<!NON_EXPORTABLE_TYPE("parameter; foo.C")!>y: C<!>
|
||||
) {
|
||||
fun foo(x: C) = x
|
||||
<!NON_EXPORTABLE_TYPE("return; foo.C")!>fun foo(<!NON_EXPORTABLE_TYPE("parameter; foo.C")!>x: C<!>)<!> = x
|
||||
|
||||
val x2: C = C()
|
||||
<!NON_EXPORTABLE_TYPE("property; foo.C")!>val x2: C<!> = C()
|
||||
|
||||
var x3: C
|
||||
<!NON_EXPORTABLE_TYPE("property; foo.C")!>var x3: C<!>
|
||||
get() = C()
|
||||
set(value) { }
|
||||
}
|
||||
@@ -40,7 +40,7 @@ fun foo2() {
|
||||
}
|
||||
|
||||
@JsExport
|
||||
fun foo3(x: Unit) {
|
||||
fun foo3(<!NON_EXPORTABLE_TYPE("parameter; kotlin.Unit")!>x: Unit<!>) {
|
||||
}
|
||||
|
||||
@JsExport
|
||||
@@ -48,7 +48,7 @@ fun foo4(x: () -> Unit) {
|
||||
}
|
||||
|
||||
@JsExport
|
||||
fun foo5(x: (Unit) -> Unit) {
|
||||
fun foo5(<!NON_EXPORTABLE_TYPE("parameter; kotlin.Function1<kotlin.Unit, kotlin.Unit>")!>x: (Unit) -> Unit<!>) {
|
||||
}
|
||||
|
||||
@JsExport
|
||||
|
||||
Vendored
+5
-5
@@ -8,17 +8,17 @@ abstract class C
|
||||
interface I
|
||||
|
||||
@JsExport
|
||||
fun <T : C>foo() { }
|
||||
fun <T : <!NON_EXPORTABLE_TYPE("upper bound; foo.C")!>C<!>>foo() { }
|
||||
|
||||
@JsExport
|
||||
class A<T : C, S: I>
|
||||
class A<T : <!NON_EXPORTABLE_TYPE("upper bound; foo.C")!>C<!>, S: <!NON_EXPORTABLE_TYPE("upper bound; foo.I")!>I<!>>
|
||||
|
||||
@JsExport
|
||||
interface I2<T> where T : C, T : I
|
||||
interface I2<T> where T : <!NON_EXPORTABLE_TYPE("upper bound; foo.C")!>C<!>, T : <!NON_EXPORTABLE_TYPE("upper bound; foo.I")!>I<!>
|
||||
|
||||
@JsExport
|
||||
class B<T>(val a: T, val b: Comparable<T>) {
|
||||
val c: Comparable<T> = b
|
||||
class B<T>(val a: T, <!NON_EXPORTABLE_TYPE("parameter; kotlin.Comparable<T>")!>val b: Comparable<T><!>) {
|
||||
<!NON_EXPORTABLE_TYPE("property; kotlin.Comparable<T>")!>val c: Comparable<T><!> = b
|
||||
}
|
||||
|
||||
@JsExport
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -ERROR_SUPPRESSION
|
||||
@file:Suppress("UNUSED_PARAMETER", "CONFLICTING_OVERLOADS", "REDECLARATION")
|
||||
|
||||
class A1 {
|
||||
|
||||
Vendored
+2
-1
@@ -1,5 +1,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: +InlineClasses, -JvmInlineValueClasses, -JsAllowValueClassesInExternals
|
||||
// !DIAGNOSTICS: -OPT_IN_USAGE
|
||||
|
||||
// FILE: uint.kt
|
||||
|
||||
@@ -62,4 +63,4 @@ external interface EI {
|
||||
fun foo(): <!INLINE_CLASS_IN_EXTERNAL_DECLARATION!>SomeIC<!>
|
||||
fun foo(<!INLINE_CLASS_IN_EXTERNAL_DECLARATION!>c: SomeIC<!>): <!INLINE_CLASS_IN_EXTERNAL_DECLARATION!>SomeIC<!>
|
||||
fun foo(a: Int, <!INLINE_CLASS_IN_EXTERNAL_DECLARATION!>c: SomeIC<!>): <!INLINE_CLASS_IN_EXTERNAL_DECLARATION!>SomeIC<!>
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: +InlineClasses, -JvmInlineValueClasses, +JsAllowValueClassesInExternals
|
||||
// !DIAGNOSTICS: +INLINE_CLASS_IN_EXTERNAL_DECLARATION_WARNING
|
||||
// !DIAGNOSTICS: +INLINE_CLASS_IN_EXTERNAL_DECLARATION_WARNING -OPT_IN_USAGE
|
||||
|
||||
// FILE: uint.kt
|
||||
|
||||
@@ -63,4 +63,4 @@ external interface EI {
|
||||
fun foo(): <!INLINE_CLASS_IN_EXTERNAL_DECLARATION_WARNING!>SomeIC<!>
|
||||
fun foo(<!INLINE_CLASS_IN_EXTERNAL_DECLARATION_WARNING!>c: SomeIC<!>): <!INLINE_CLASS_IN_EXTERNAL_DECLARATION_WARNING!>SomeIC<!>
|
||||
fun foo(a: Int, <!INLINE_CLASS_IN_EXTERNAL_DECLARATION_WARNING!>c: SomeIC<!>): <!INLINE_CLASS_IN_EXTERNAL_DECLARATION_WARNING!>SomeIC<!>
|
||||
}
|
||||
}
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -NOTHING_TO_INLINE
|
||||
external class A {
|
||||
class B
|
||||
}
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -ERROR_SUPPRESSION
|
||||
// FILE: A.kt
|
||||
@file:Suppress("OPT_IN_USAGE", "JS_NAME_CLASH")
|
||||
package foo
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -ERROR_SUPPRESSION
|
||||
// FILE: A.kt
|
||||
@file:Suppress("OPT_IN_USAGE", "JS_NAME_CLASH")
|
||||
package foo
|
||||
|
||||
+17
-17
@@ -1,25 +1,25 @@
|
||||
/Function1.kt:7:1: warning: Exporting name 'test' in ES modules may clash with
|
||||
/Function1.kt:8:1: warning: Exporting name 'test' in ES modules may clash with
|
||||
exporting name 'test' from file '/Class1.kt'
|
||||
exporting name 'test' from file '/Property1.kt'
|
||||
|
||||
/Function1.kt:7:1: error: Exporting name 'test' clashes with
|
||||
/Function1.kt:8:1: error: Exporting name 'test' clashes with
|
||||
exporting name 'test' from file '/Class1.kt'
|
||||
package 'foo.bar.baz.test' from file '/Package1.kt'
|
||||
package 'foo.bar.baz.test' from file '/Package2.kt'
|
||||
exporting name 'test' from file '/Property1.kt'
|
||||
|
||||
/Function2.kt:13:1: error: Exporting name 'baz' clashes with
|
||||
/Function2.kt:14:1: error: Exporting name 'baz' clashes with
|
||||
package 'foo.bar.baz' from file '/Class1.kt'
|
||||
package 'foo.bar.baz' from file '/Function1.kt'
|
||||
package 'foo.bar.baz' from file '/Package1.kt'
|
||||
package 'foo.bar.baz' from file '/Package2.kt'
|
||||
package 'foo.bar.baz' from file '/Property1.kt'
|
||||
|
||||
/Function3.kt:18:1: warning: Exporting name 'foo' in ES modules may clash with
|
||||
/Function3.kt:19:1: warning: Exporting name 'foo' in ES modules may clash with
|
||||
exporting name 'foo' from file '/Class3.kt'
|
||||
exporting name 'foo' from file '/Property3.kt'
|
||||
|
||||
/Function3.kt:18:1: error: Exporting name 'foo' clashes with
|
||||
/Function3.kt:19:1: error: Exporting name 'foo' clashes with
|
||||
package 'foo' from file '/Class1.kt'
|
||||
package 'foo' from file '/Class2.kt'
|
||||
exporting name 'foo' from file '/Class3.kt'
|
||||
@@ -31,19 +31,19 @@
|
||||
package 'foo' from file '/Property2.kt'
|
||||
exporting name 'foo' from file '/Property3.kt'
|
||||
|
||||
/Property1.kt:24:1: warning: Exporting name 'test' in ES modules may clash with
|
||||
/Property1.kt:25:1: warning: Exporting name 'test' in ES modules may clash with
|
||||
exporting name 'test' from file '/Class1.kt'
|
||||
exporting name 'test' from file '/Function1.kt'
|
||||
|
||||
/Property1.kt:24:1: error: Exporting name 'test' clashes with
|
||||
/Property1.kt:25:1: error: Exporting name 'test' clashes with
|
||||
exporting name 'test' from file '/Class1.kt'
|
||||
exporting name 'test' from file '/Function1.kt'
|
||||
package 'foo.bar.baz.test' from file '/Package1.kt'
|
||||
package 'foo.bar.baz.test' from file '/Package2.kt'
|
||||
|
||||
/Property2.kt:30:1: warning: Exporting name 'bar' in ES modules may clash with exporting name 'bar' from file '/Class2.kt'
|
||||
/Property2.kt:31:1: warning: Exporting name 'bar' in ES modules may clash with exporting name 'bar' from file '/Class2.kt'
|
||||
|
||||
/Property2.kt:30:1: error: Exporting name 'bar' clashes with
|
||||
/Property2.kt:31:1: error: Exporting name 'bar' clashes with
|
||||
package 'foo.bar' from file '/Class1.kt'
|
||||
exporting name 'bar' from file '/Class2.kt'
|
||||
package 'foo.bar' from file '/Function1.kt'
|
||||
@@ -52,11 +52,11 @@
|
||||
package 'foo.bar' from file '/Package2.kt'
|
||||
package 'foo.bar' from file '/Property1.kt'
|
||||
|
||||
/Property3.kt:35:1: warning: Exporting name 'foo' in ES modules may clash with
|
||||
/Property3.kt:36:1: warning: Exporting name 'foo' in ES modules may clash with
|
||||
exporting name 'foo' from file '/Class3.kt'
|
||||
exporting name 'foo' from file '/Function3.kt'
|
||||
|
||||
/Property3.kt:35:1: error: Exporting name 'foo' clashes with
|
||||
/Property3.kt:36:1: error: Exporting name 'foo' clashes with
|
||||
package 'foo' from file '/Class1.kt'
|
||||
package 'foo' from file '/Class2.kt'
|
||||
exporting name 'foo' from file '/Class3.kt'
|
||||
@@ -68,19 +68,19 @@
|
||||
package 'foo' from file '/Property1.kt'
|
||||
package 'foo' from file '/Property2.kt'
|
||||
|
||||
/Class1.kt:41:1: warning: Exporting name 'test' in ES modules may clash with
|
||||
/Class1.kt:42:1: warning: Exporting name 'test' in ES modules may clash with
|
||||
exporting name 'test' from file '/Function1.kt'
|
||||
exporting name 'test' from file '/Property1.kt'
|
||||
|
||||
/Class1.kt:41:1: error: Exporting name 'test' clashes with
|
||||
/Class1.kt:42:1: error: Exporting name 'test' clashes with
|
||||
exporting name 'test' from file '/Function1.kt'
|
||||
package 'foo.bar.baz.test' from file '/Package1.kt'
|
||||
package 'foo.bar.baz.test' from file '/Package2.kt'
|
||||
exporting name 'test' from file '/Property1.kt'
|
||||
|
||||
/Class2.kt:47:1: warning: Exporting name 'bar' in ES modules may clash with exporting name 'bar' from file '/Property2.kt'
|
||||
/Class2.kt:48:1: warning: Exporting name 'bar' in ES modules may clash with exporting name 'bar' from file '/Property2.kt'
|
||||
|
||||
/Class2.kt:47:1: error: Exporting name 'bar' clashes with
|
||||
/Class2.kt:48:1: error: Exporting name 'bar' clashes with
|
||||
package 'foo.bar' from file '/Class1.kt'
|
||||
package 'foo.bar' from file '/Function1.kt'
|
||||
package 'foo.bar' from file '/Function2.kt'
|
||||
@@ -89,11 +89,11 @@
|
||||
package 'foo.bar' from file '/Property1.kt'
|
||||
exporting name 'bar' from file '/Property2.kt'
|
||||
|
||||
/Class3.kt:51:1: warning: Exporting name 'foo' in ES modules may clash with
|
||||
/Class3.kt:52:1: warning: Exporting name 'foo' in ES modules may clash with
|
||||
exporting name 'foo' from file '/Function3.kt'
|
||||
exporting name 'foo' from file '/Property3.kt'
|
||||
|
||||
/Class3.kt:51:1: error: Exporting name 'foo' clashes with
|
||||
/Class3.kt:52:1: error: Exporting name 'foo' clashes with
|
||||
package 'foo' from file '/Class1.kt'
|
||||
package 'foo' from file '/Class2.kt'
|
||||
package 'foo' from file '/Function1.kt'
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -ERROR_SUPPRESSION
|
||||
// !RENDER_ALL_DIAGNOSTICS_FULL_TEXT
|
||||
// FILE: Function1.kt
|
||||
@file:Suppress("OPT_IN_USAGE", "JS_NAME_CLASH")
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -ERROR_SUPPRESSION
|
||||
// FILE: A.kt
|
||||
@file:Suppress("OPT_IN_USAGE", "JS_NAME_CLASH")
|
||||
package foo.bar
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -ERROR_SUPPRESSION
|
||||
// FILE: A.kt
|
||||
@file:Suppress("OPT_IN_USAGE", "JS_NAME_CLASH")
|
||||
package foo.bar
|
||||
|
||||
+1
@@ -1,4 +1,5 @@
|
||||
// FIR_IDENTICAL
|
||||
// !DIAGNOSTICS: -ERROR_SUPPRESSION
|
||||
// FILE: A.kt
|
||||
@file:Suppress("OPT_IN_USAGE", "JS_NAME_CLASH")
|
||||
package foo
|
||||
|
||||
@@ -43,7 +43,6 @@ abstract class AbstractFirJsDiagnosticTestBase(val parser: FirParser) : Abstract
|
||||
|
||||
defaultDirectives {
|
||||
+ConfigurationDirectives.WITH_STDLIB
|
||||
DiagnosticsDirectives.DIAGNOSTICS with listOf("-warnings", "-infos")
|
||||
}
|
||||
|
||||
configureFirParser(parser)
|
||||
|
||||
+6
@@ -462,6 +462,12 @@ public class FirPsiJsOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiJ
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/extendingNonExportedType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericClassWithInner.kt")
|
||||
public void testGenericClassWithInner() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/genericClassWithInner.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jsExportOnNestedDeclarations.kt")
|
||||
public void testJsExportOnNestedDeclarations() throws Exception {
|
||||
|
||||
Generated
+6
@@ -462,6 +462,12 @@ public class DiagnosticsWithJsStdLibTestGenerated extends AbstractDiagnosticsTes
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/extendingNonExportedType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("genericClassWithInner.kt")
|
||||
public void testGenericClassWithInner() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithJsStdLib/export/genericClassWithInner.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jsExportOnNestedDeclarations.kt")
|
||||
public void testJsExportOnNestedDeclarations() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user