Refactor multiplatform test cases in MultiModuleHighlightingTest
Groupt multiplatform test cases in a nested class, get rid of duplicated code, rename "header" -> "common" where it relates to the common module
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
header class <error descr="[HEADER_WITHOUT_IMPLEMENTATION] Header declaration 'My' has no implementation in module for JVM">My</error> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
<error descr="[IMPLEMENTATION_WITHOUT_HEADER] Modifier 'impl' is only applicable to members that are initially declared in platform-independent code">impl</error> class Your {
|
||||
|
||||
}
|
||||
|
||||
header class <error descr="[HEADER_WITHOUT_IMPLEMENTATION] Header declaration 'His' has no implementation in module for JVM">His</error> {
|
||||
|
||||
}
|
||||
|
||||
header class Their {
|
||||
|
||||
}
|
||||
|
||||
impl class Their {
|
||||
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
header class My {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
impl class My {
|
||||
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
header fun foo(): Int
|
||||
|
||||
header val bar: String
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
impl fun foo() = 42
|
||||
|
||||
impl val bar = "Hello"
|
||||
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
header class <error>My</error> {
|
||||
|
||||
fun foo(): Int
|
||||
|
||||
fun bar(arg: Int): Boolean
|
||||
|
||||
}
|
||||
|
||||
header class <error>Your</error> {
|
||||
|
||||
fun foo(): Int
|
||||
|
||||
fun bar(arg: Int): Boolean
|
||||
|
||||
}
|
||||
|
||||
header class His {
|
||||
|
||||
fun foo(): Int
|
||||
|
||||
fun bar(arg: Int): Boolean
|
||||
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
<error descr="[IMPLEMENTATION_WITHOUT_HEADER] Modifier 'impl' is only applicable to members that are initially declared in platform-independent code">impl</error> class My {
|
||||
|
||||
<error descr="[IMPLEMENTATION_WITHOUT_HEADER] Modifier 'impl' is only applicable to members that are initially declared in platform-independent code">impl</error> fun foo() = 42
|
||||
}
|
||||
|
||||
<error descr="[IMPLEMENTATION_WITHOUT_HEADER] Modifier 'impl' is only applicable to members that are initially declared in platform-independent code">impl</error> class Your {
|
||||
|
||||
<error descr="[IMPLEMENTATION_WITHOUT_HEADER] Modifier 'impl' is only applicable to members that are initially declared in platform-independent code">impl</error> fun foo() = 13
|
||||
|
||||
<error descr="[IMPLEMENTATION_WITHOUT_HEADER] Modifier 'impl' is only applicable to members that are initially declared in platform-independent code">impl</error> fun bar(arg: Int) = arg
|
||||
|
||||
}
|
||||
|
||||
impl class His {
|
||||
|
||||
impl fun foo() = 7
|
||||
|
||||
impl fun bar(arg: Int) = arg == foo()
|
||||
|
||||
}
|
||||
Vendored
+3
@@ -0,0 +1,3 @@
|
||||
header class <error descr="[HEADER_WITHOUT_IMPLEMENTATION] Header declaration 'My' has no implementation in module for JS"><error descr="[HEADER_WITHOUT_IMPLEMENTATION] Header declaration 'My' has no implementation in module for JVM">My</error></error> {
|
||||
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// See KT-15601
|
||||
|
||||
@Suppress("HEADER_WITHOUT_IMPLEMENTATION")
|
||||
header interface Event
|
||||
|
||||
@Suppress("SOMETHING_WRONG")
|
||||
header class <error descr="[HEADER_WITHOUT_IMPLEMENTATION] Header declaration 'Wrong' has no implementation in module for JVM">Wrong</error>
|
||||
Reference in New Issue
Block a user