Feature Request P3
Status Update
Comments
ni...@google.com <ni...@google.com> #2
thanks for create this issue instance. It is more related to generated Binding Class in Data Binding is deemed to be Unresolved by KT Editor, when multiple base modules in the project has the same Data Binding classes.
Description
As part of b/143351714 we discussed the effect of const-correctness on Reactor variables. In general this requires the use of mutable member fields, which we've already adopted (an alternative might be to define a
Const<T>
class, but that's not considered very elegant and it adds complication to inherit most but not all operators ofT
).What is not implemented yet is to ensure that dereferencing
Pointer<const T>
produces aconst Reference<T>
. The following snippet should produce a static compile-time error:However this is fine:
But not: