Prohibit inline data classes
`CONFLICTING_JVM_DECLARATIONS` diagnostics are reported because we're trying to generate functions from `Any` once for inline class and once for data class #KT-25760 Fixed
This commit is contained in:
+2
@@ -29,3 +29,5 @@ final inline class D0(val x: Int)
|
||||
<!INLINE_CLASS_NOT_FINAL!>open<!> inline class D1(val x: Int)
|
||||
<!INLINE_CLASS_NOT_FINAL!>abstract<!> inline class D2(val x: Int)
|
||||
<!INLINE_CLASS_NOT_FINAL!>sealed<!> inline class D3(val x: Int)
|
||||
|
||||
<!INCOMPATIBLE_MODIFIERS!>inline<!> <!INCOMPATIBLE_MODIFIERS!>data<!> class <!CONFLICTING_JVM_DECLARATIONS, CONFLICTING_JVM_DECLARATIONS, CONFLICTING_JVM_DECLARATIONS!>D4(val x: String)<!>
|
||||
|
||||
Reference in New Issue
Block a user