If a function is defined twice the 2nd one should be used
authorLars Knoll <lars.knoll@digia.com>
Mon, 21 Jan 2013 11:33:59 +0000 (12:33 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Mon, 21 Jan 2013 11:45:43 +0000 (12:45 +0100)
Change-Id: Id84663c319dd045e0f1e60b3300523a59f898b0e
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qv4codegen_p.h
tests/TestExpectations

index e6308ac..f84c542 100644 (file)
@@ -193,7 +193,7 @@ protected:
                     m.function = function;
                     members.insert(name, m);
                 } else {
-                    if ((*it).type < type) {
+                    if ((*it).type <= type) {
                         (*it).type = type;
                         (*it).function = function;
                     }
index 39c0a49..c2e77f5 100644 (file)
@@ -250,7 +250,6 @@ S12.6.2_A8 failing
 13.0-9-s failing
 S13_A15_T4 failing
 S13_A3_T1 failing
-S13_A6_T2 failing
 13.1-11-s failing
 13.1-12-s failing
 13.1-13-s failing
@@ -273,8 +272,6 @@ S13.2.2_A19_T6 failing
 S13.2.2_A19_T8 failing
 S13.2.3_A1 failing
 S14_A2 failing
-S14_A5_T1 failing
-S14_A5_T2 failing
 14.1-5-s failing
 15.1.1.3-3 failing
 S15.1.2.1_A3.2_T8 failing
@@ -958,7 +955,6 @@ S15.7.4.5_A1.4_T01 failing
 15.9.4.4-0-2 failing
 15.9.4.4-0-3 failing
 15.9.4.4-0-4 failing
-S15.9.2.1_A2 failing
 S15.9.3.1_A5_T1 failing
 S15.9.3.1_A5_T2 failing
 S15.9.3.1_A5_T3 failing