Platform header annotator: implementation + simple multi-platform highlighting tests #KT-14905 Fixed
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
header class <error descr="[HEADER_WITHOUT_IMPLEMENTATION] No implementation is found for header declaration 'My'">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] No implementation is found for header declaration 'His'">His</error> {
|
||||
|
||||
}
|
||||
|
||||
header class Their {
|
||||
|
||||
}
|
||||
|
||||
impl class Their {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
header class My {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
impl class My {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
header class <error descr="[HEADER_WITHOUT_IMPLEMENTATION] No implementation is found for header declaration 'My'"><error descr="[HEADER_WITHOUT_IMPLEMENTATION] No implementation is found for header declaration 'My'">My</error></error> {
|
||||
|
||||
}
|
||||
@@ -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
|
||||
|
||||
}
|
||||
@@ -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()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user