Add line marker test for sealed classes #KT-20043 Fixed

This commit is contained in:
Mikhail Glukhikh
2017-10-09 13:23:55 +03:00
parent 4e56fda439
commit 0ebe9d576a
5 changed files with 52 additions and 0 deletions
@@ -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() = ""
}
}