File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
tests/nullsafety/src/cases Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,6 @@ class TestStrict {
126126 extern static final something : String ;
127127
128128 public var field : Null <String >;
129- // @:shouldWarn public var publiclyModifiableField:String = 'hello';
130129 @:shouldFail var notInitializedField : Int ;
131130 @:shouldFail var notInitializedProperty (default ,null ): Float ;
132131 @:shouldFail @:isVar var notInitializedIsVar (get ,set ): String ;
@@ -860,8 +859,7 @@ class TestStrict {
860859
861860 static public function closure_storedSomewhere_shouldFail (? s : String ) {
862861 if (s != null ) {
863- // unstable, see #12187
864- // passesSomewhereElse(() -> shouldFail(s.length));
862+ passesSomewhereElse (() -> shouldFail (s .length ));
865863 storesSomewhere (() -> shouldFail (s .length ));
866864 }
867865 }
@@ -1138,9 +1136,9 @@ typedef Recursive<T1> = {
11381136}
11391137
11401138// @see https://github.com/HaxeFoundation/haxe/issues/7733
1141- // class RecClass<T1> {
1142- // public function rec<T2>(a:Recursive<T1>):Recursive<T2> return a;
1143- // }
1139+ class RecClass < T1 > {
1140+ public function rec <T2 >(a : Recursive <T1 >): Recursive <T2 > return a ;
1141+ }
11441142
11451143private class Parent {
11461144 public function new () {}
You can’t perform that action at this time.
0 commit comments