Reserve secondary constructors with bodies inside inline classes

#KT-26575 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2018-09-04 14:21:43 +03:00
parent 002a66fec1
commit b4674a172e
6 changed files with 38 additions and 5 deletions
@@ -36,4 +36,10 @@ interface WithBox {
inline class IC4(val s: String) : WithBox {
override fun <!RESERVED_MEMBER_INSIDE_INLINE_CLASS!>box<!>(): String = ""
}
inline class IC5(val a: String) {
constructor(i: Int) : this(i.toString()) <!SECONDARY_CONSTRUCTOR_WITH_BODY_INSIDE_INLINE_CLASS!>{<!>
TODO("something")
}
}