Add line marker test for sealed classes #KT-20043 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// !CHECK_HIGHLIGHTING
|
||||
|
||||
expect sealed class Sealed {
|
||||
|
||||
object Sealed1 : Sealed
|
||||
|
||||
class Sealed2 : Sealed {
|
||||
val x: Int
|
||||
fun foo(): String
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
actual sealed class <lineMarker>Sealed</lineMarker> {
|
||||
|
||||
actual object <lineMarker>Sealed1</lineMarker> : Sealed()
|
||||
|
||||
actual class <lineMarker>Sealed2</lineMarker> : Sealed() {
|
||||
actual val <lineMarker>x</lineMarker> = 42
|
||||
actual fun <lineMarker>foo</lineMarker>() = ""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
expect sealed class <lineMarker>Sealed</lineMarker> {
|
||||
|
||||
object <lineMarker>Sealed1</lineMarker> : Sealed
|
||||
|
||||
class <lineMarker>Sealed2</lineMarker> : Sealed {
|
||||
val <lineMarker>x</lineMarker>: Int
|
||||
fun <lineMarker>foo</lineMarker>(): String
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// !CHECK_HIGHLIGHTING
|
||||
|
||||
actual sealed class Sealed {
|
||||
|
||||
actual object Sealed1 : Sealed()
|
||||
|
||||
actual class Sealed2 : Sealed() {
|
||||
actual val x = 42
|
||||
actual fun foo() = ""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user