Expect/actual markers: handle secondary constructors correctly

So #KT-20309 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-10-06 17:27:13 +03:00
parent 26136cd0fe
commit ceab148b09
8 changed files with 59 additions and 25 deletions
@@ -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) {}
}
@@ -0,0 +1,3 @@
expect class <lineMarker>SecondaryConstructor</lineMarker>{
constructor(name: String, surname: String)
}
@@ -0,0 +1,7 @@
// !CHECK_HIGHLIGHTING
actual class SecondaryConstructor {
actual constructor(name: String, surname: String) {}
}