Browse Source

[compiler] fix idiocy

Simon Krajewski 3 years ago
parent
commit
89d3d06795

+ 1 - 1
src/compiler/compiler.ml

@@ -386,7 +386,7 @@ let catch_completion_and_exit ctx callbacks run =
 			callbacks.after_compilation ctx;
 			ServerMessage.completion str;
 			ctx.comm.write_err str;
-			1
+			0
 		| EvalExceptions.Sys_exit i | Hlinterp.Sys_exit i ->
 			if i <> 0 then ctx.has_error <- true;
 			finalize ctx;

+ 1 - 1
tests/misc/compile.hxml

@@ -1,4 +1,4 @@
 -p src
--D MISC_TEST_FILTER=sys-exit
+#-D MISC_TEST_FILTER=4270
 -main Main
 --interp

+ 1 - 2
tests/misc/projects/Issue5644/compile-fail.hxml.stderr

@@ -1,2 +1 @@
-User.hx:1: characters 20-47 : Type not found : ThisObviouslyDoesntExist
-Main.hx:1: lines 1-5 : ... Defined in this class
+User.hx:1: characters 20-47 : Type not found : ThisObviouslyDoesntExist

+ 0 - 1
tests/misc/projects/Issue7614/compile-fail.hxml.stderr

@@ -1,3 +1,2 @@
 Main.hx:13: characters 1-24 : Abstract chain detected: Test2 -> Test -> Test2
-Main.hx:6: lines 6-10 : ... Defined in this class
 Main.hx:6: lines 6-10 : Abstract underlying type cannot be recursive

+ 0 - 1
tests/misc/projects/Issue8517/compile-fail.hxml.stderr

@@ -1,4 +1,3 @@
 Macro.hx:3: characters 60-69 : Invalid assign
-Fail.hx:1: lines 1-7 : ... Defined in this class
 Fail.hx:4: characters 3-12 : Invalid assign
 Fail.hx:5: characters 3-12 : Invalid assign

+ 0 - 1
tests/misc/projects/Issue9017/compile-fail.hxml.stderr

@@ -1,3 +1,2 @@
 Main.hx:8: characters 1-13 : @:structInit is not allowed on interfaces
-Main.hx:9: lines 9-11 : ... Defined in this class
 Main.hx:3: characters 15-26 : Foo does not have a constructor

+ 1 - 1
tests/misc/projects/Issue9391/compile-fail.hxml.stderr

@@ -1 +1 @@
-Main.hx:8: characters 9-20 : Foo is missing @:genericBuild meta. Was it removed by a macro?
+Main.hx:9: characters 9-17 : Foo is missing @:genericBuild meta. Was it removed by a macro?

+ 1 - 2
tests/misc/projects/Issue9619/abstract-structInit/compile-fail.hxml.stderr

@@ -1,2 +1 @@
-Main.hx:1: characters 1-13 : @:structInit is not allowed on abstract classes
-Main.hx:1: lines 1-3 : ... Defined in this class
+Main.hx:1: characters 1-13 : @:structInit is not allowed on abstract classes

+ 1 - 3
tests/misc/projects/issue5002/compile-fail.hxml.stderr

@@ -1,4 +1,2 @@
 Main.hx:1: characters 1-8 : "0" is not a valid field name.
-Main.hx:2: lines 2-4 : ... Defined in this class
-Main.hx:1: characters 1-8 : "this" is not a valid field name.
-Main.hx:2: lines 2-4 : ... Defined in this class
+Main.hx:1: characters 1-8 : "this" is not a valid field name.