summaryrefslogtreecommitdiff
path: root/src/tests/eolian_js
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@samsung.com>2018-11-22 17:17:29 +0100
committerDaniel Kolesa <d.kolesa@samsung.com>2018-11-23 13:57:07 +0100
commitc8e0a1d2e2eaa5b8369eeb34a38b3b343788703f (patch)
treea5029aaf3abd0a5d41d78e0584befbd83952e682 /src/tests/eolian_js
parent14ce54c30321e3b78b979872427b07d9420d5c66 (diff)
eolian: implement new syntax for inheritance
This new syntax separates the parent class from extensions, in a familiar way to similar to e.g. Java. Since changing everything at once is a lot of effort, implement it alongside for the time being.
Diffstat (limited to 'src/tests/eolian_js')
-rw-r--r--src/tests/eolian_js/constructor_method_class.eo2
-rw-r--r--src/tests/eolian_js/test_object.eo2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/eolian_js/constructor_method_class.eo b/src/tests/eolian_js/constructor_method_class.eo
index ed77e85..206f2df 100644
--- a/src/tests/eolian_js/constructor_method_class.eo
+++ b/src/tests/eolian_js/constructor_method_class.eo
@@ -1,4 +1,4 @@
1class Constructor_Method_Class (Efl.Object) 1class Constructor_Method_Class extends Efl.Object
2{ 2{
3 data: Constructor_Method_Class_Data; 3 data: Constructor_Method_Class_Data;
4 methods { 4 methods {
diff --git a/src/tests/eolian_js/test_object.eo b/src/tests/eolian_js/test_object.eo
index ea81366..d1aed0a 100644
--- a/src/tests/eolian_js/test_object.eo
+++ b/src/tests/eolian_js/test_object.eo
@@ -10,7 +10,7 @@ struct Test.Struct_Ex {
10 value_enum: Test.Enum_Ex; 10 value_enum: Test.Enum_Ex;
11} 11}
12 12
13class Test.Object (Efl.Object) { 13class Test.Object extends Efl.Object {
14 methods { 14 methods {
15 method_integral_in_a_check { 15 method_integral_in_a_check {
16 [[ tests integral in ]] 16 [[ tests integral in ]]