Skip to content

Commit 5497f50

Browse files
authored
Update TestStrict.hx (#12228)
1 parent bbd0ee0 commit 5497f50

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

tests/nullsafety/src/cases/TestStrict.hx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff 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

11451143
private class Parent {
11461144
public function new() {}

0 commit comments

Comments
 (0)