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>() = ""
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user