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