Report diagnostics for inline classes even if the feature is unsupported

This would help for those who use inline classes by suppressing error
 about unsupported feature
This commit is contained in:
Mikhail Zarechenskiy
2018-05-06 02:59:29 +03:00
parent 8834ea74f2
commit 71de2e3265
3 changed files with 10 additions and 3 deletions
@@ -1,7 +1,10 @@
// !LANGUAGE: -InlineClasses
// !DIAGNOSTICS: -UNUSED_PARAMETER
<!UNSUPPORTED_FEATURE!>inline<!> class Foo(val x: Int)
<!WRONG_MODIFIER_TARGET!>inline<!> annotation class InlineAnn
<!WRONG_MODIFIER_TARGET!>inline<!> object InlineObject
<!WRONG_MODIFIER_TARGET!>inline<!> enum class InlineEnum
<!UNSUPPORTED_FEATURE!>inline<!> class NotVal(<!INLINE_CLASS_CONSTRUCTOR_NOT_FINAL_READ_ONLY_PARAMETER!>x: Int<!>)