|
@@ -4,7 +4,6 @@ import unit.HelperMacros.isNullable as n;
|
|
|
|
|
|
class Issue6972 extends unit.Test {
|
|
|
function test() {
|
|
|
- f0(1);
|
|
|
f1(1);
|
|
|
f2(1);
|
|
|
f3();
|
|
@@ -14,7 +13,6 @@ class Issue6972 extends unit.Test {
|
|
|
f7();
|
|
|
f8();
|
|
|
|
|
|
- f10();
|
|
|
f11();
|
|
|
f12();
|
|
|
f13();
|
|
@@ -25,7 +23,6 @@ class Issue6972 extends unit.Test {
|
|
|
f18();
|
|
|
}
|
|
|
|
|
|
- function f0(x) f(n(x));
|
|
|
function f1(x:Int) f(n(x));
|
|
|
function f2(x:Null<Int>) t(n(x));
|
|
|
function f3(x = null) t(n(x));
|
|
@@ -35,13 +32,12 @@ class Issue6972 extends unit.Test {
|
|
|
function f7(x:Null<Int> = 1) t(n(x));
|
|
|
function f8(x:Null<Int> = null) t(n(x));
|
|
|
|
|
|
- function f10(?x) t(n(x));
|
|
|
function f11(?x:Int) t(n(x));
|
|
|
function f12(?x:Null<Int>) t(n(x));
|
|
|
function f13(?x = null) t(n(x));
|
|
|
- function f14(?x = 1) f(n(x));
|
|
|
+ function f14(?x = 1) t(n(x));
|
|
|
function f15(?x:Int = null) t(n(x));
|
|
|
- function f16(?x:Int = 1) f(n(x));
|
|
|
+ function f16(?x:Int = 1) t(n(x));
|
|
|
function f17(?x:Null<Int> = 1) t(n(x));
|
|
|
function f18(?x:Null<Int> = null) t(n(x));
|
|
|
}
|