recursive automatic deference for object attribute access may be misleading #1461
Labels
compiler/sem
Related to semantic-analysis system of the compiler
language-design
Language design syntax, semantics, types, statics and dynamics.
recursive automatic deference (
ptr ptr... T
orref ref... T
orptr ref... T
, etc) for object attribute access may be misleading due two reasons:ref T
orptr T
also cases like
ptr ptr T
orptr ref T
, etc. are less commonExample
Actual Output
Expected Output
An error indicating automatic dereferencing for object attribute access is only for
ptr T
andref T
and not recursiveReferences
C operator
->
marks error for apointer of pointer of a struct
and is valid only forpointer of a struct
The text was updated successfully, but these errors were encountered: