Convert EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR into deprecation error
#KT-28078 Fixed
This commit is contained in:
+6
@@ -0,0 +1,6 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: +ForbidExposingTypesInPrimaryConstructorProperties
|
||||
|
||||
private enum class Foo { A, B }
|
||||
|
||||
class Bar private constructor(val <!EXPOSED_PROPERTY_TYPE_IN_CONSTRUCTOR_ERROR!>foo<!>: Foo)
|
||||
Reference in New Issue
Block a user