IC: Forbid inner classes inside inline classes
#KT-43067 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// !LANGUAGE: +InlineClasses
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
|
||||
inline class Foo(val x: Int) {
|
||||
<!INNER_CLASS_INSIDE_INLINE_CLASS!>inner<!> class InnerC
|
||||
<!WRONG_MODIFIER_TARGET!>inner<!> object InnerO
|
||||
<!WRONG_MODIFIER_TARGET!>inner<!> interface InnerI
|
||||
}
|
||||
Reference in New Issue
Block a user