compiler/libec2: Support for class value initializers, error recovery before initiali...
[sdk] / compiler / libec2 / test.ec
index 2eaa696..03cc65e 100644 (file)
@@ -1,13 +1,22 @@
+class Form1 : Window
+{
+   void OnCreate(
+
+   caption = "Form1";
+   background = formColor;
+   borderStyle = sizable;
+   hasMaximize = true;
+   hasMinimize = true;
+   hasClose = true;
+   clientSize = { 632, 438 };
+}
+
 struct InventoryItem
 {
-   float price;
+   float price = 5;
    String name;
 
-   void Print()
-   {
-      int a;
-      PrintLn(a + 4);
-   }
+   price = 10.0f;
 } item, * itemPtr;
 
 class SomeClass
@@ -19,6 +28,8 @@ int a;
 
 typedef int bla;
 
+// import "ecere"
+
 int SomeFunction(int * p)
 {
    int b[3][4] =