Expect/actual markers: handle secondary constructors correctly
So #KT-20309 Fixed
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
// !CHECK_HIGHLIGHTING
|
||||
|
||||
expect class SecondaryConstructor{
|
||||
constructor(name: String, surname: String)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
actual class <lineMarker>SecondaryConstructor</lineMarker> {
|
||||
actual <lineMarker>constructor</lineMarker>(name: String, surname: String) {}
|
||||
}
|
||||
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
expect class <lineMarker>SecondaryConstructor</lineMarker>{
|
||||
constructor(name: String, surname: String)
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
// !CHECK_HIGHLIGHTING
|
||||
|
||||
actual class SecondaryConstructor {
|
||||
actual constructor(name: String, surname: String) {}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user