2
0
RblSb 4 сар өмнө
parent
commit
5497f5023d

+ 4 - 6
tests/nullsafety/src/cases/TestStrict.hx

@@ -126,7 +126,6 @@ class TestStrict {
 	extern static final something:String;
 
 	public var field:Null<String>;
-	// @:shouldWarn public var publiclyModifiableField:String = 'hello';
 	@:shouldFail var notInitializedField:Int;
 	@:shouldFail var notInitializedProperty(default,null):Float;
 	@:shouldFail @:isVar var notInitializedIsVar(get,set):String;
@@ -860,8 +859,7 @@ class TestStrict {
 
 	static public function closure_storedSomewhere_shouldFail(?s:String) {
 		if(s != null) {
-			// unstable, see #12187
-			// passesSomewhereElse(() -> shouldFail(s.length));
+			passesSomewhereElse(() -> shouldFail(s.length));
 			storesSomewhere(() -> shouldFail(s.length));
 		}
 	}
@@ -1138,9 +1136,9 @@ typedef Recursive<T1> = {
 }
 
 // @see https://github.com/HaxeFoundation/haxe/issues/7733
-// class RecClass<T1> {
-// 	public function rec<T2>(a:Recursive<T1>):Recursive<T2> return a;
-// }
+class RecClass<T1> {
+	public function rec<T2>(a:Recursive<T1>):Recursive<T2> return a;
+}
 
 private class Parent {
 	public function new() {}