#pragma options("fox3", enable)
CLASS Customers
STATIC EXPORT id := 123 AS USUAL
STATIC EXPORT typedId := 10 AS INT
STATIC METHOD test()
id := 456
? id
Customers.id := 1000 // System.ArgumentException: Object of type 'System.Int32' cannot be converted to type 'XSharp.__Usual'.
? Customers.id
typedId := 50
Customers.typedId := 50
? typedId
STATIC CONSTRUCTOR()
test()
END CLASS
FUNCTION Start( ) AS VOID
? System.Int32.MaxValue // OK
? System.Int32.:MaxValue // OK
? Int32.:MaxValue // OK
? Int32.MaxValue // XSharp.Error: Variable does not exist: INT32
? String.:Empty // OK
? String.Empty // XSharp.Error: Variable does not exist: STRING
? Customers.id // OK
Customers.id := 123 // System.ArgumentException: Object of type 'System.Int32' cannot be converted to type 'XSharp.__Usual'.
LOCAL nId AS INT
nId := Customers.id // OK
? nId
? Customers.typedId // OK
Customers.typedId := 700 // OK
? Customers.typedId // OK
// Customers.test() // XSharp.Error: Exception of type 'XSharp.Error' was thrown.
#pragma options("fox3", enable)
CLASS Customers
STATIC EXPORT id := 123 AS USUAL
STATIC EXPORT typedId := 10 AS INT
STATIC METHOD test()
id := 456
? id
Customers.id := 1000 // System.ArgumentException: Object of type 'System.Int32' cannot be converted to type 'XSharp.__Usual'.
? Customers.id
END CLASS
FUNCTION Start( ) AS VOID
? System.Int32.MaxValue // OK
? System.Int32.:MaxValue // OK
? Int32.:MaxValue // OK
? Int32.MaxValue // XSharp.Error: Variable does not exist: INT32
? String.:Empty // OK
? String.Empty // XSharp.Error: Variable does not exist: STRING
? Customers.id // OK
Customers.id := 123 // System.ArgumentException: Object of type 'System.Int32' cannot be converted to type 'XSharp.__Usual'.
LOCAL nId AS INT
nId := Customers.id // OK
? nId
? Customers.typedId // OK
Customers.typedId := 700 // OK
? Customers.typedId // OK
// Customers.test() // XSharp.Error: Exception of type 'XSharp.Error' was thrown.