What your code currently tries to do, is creating a
user
property of the
AppPage
class of type
user
, and the
PhoneNumber
property of
user
gets set to a value - however, the 'value' in this case is
number
, which is a type and not a value.
How to fix it, depends on what you want to do. If you want to define PhoneNumber as a property of
user
with
number
as datatype, then define
user
in an external class:
class user {
PhoneNumber: number
}
If you already have such a class and want to create a specific instance of it, then provide an actual value for
PhoneNumber
on creation of the
user
instance.