|
@@ -31,7 +31,7 @@ class Issue11211 extends DisplayTestCase {
|
|
@:build(Issue11211.SafeAst.build())
|
|
@:build(Issue11211.SafeAst.build())
|
|
class Main {
|
|
class Main {
|
|
static function main() {
|
|
static function main() {
|
|
- var errRa{-1-}nge:Null<Int> = 0;
|
|
|
|
|
|
+ var errRa{-1-}nge = 0;
|
|
{-4-}final pre{-2-}vId = trace("arg");{-5-}
|
|
{-4-}final pre{-2-}vId = trace("arg");{-5-}
|
|
if (errRange != null) {
|
|
if (errRange != null) {
|
|
final has{-3-}Comma = false;
|
|
final has{-3-}Comma = false;
|
|
@@ -41,10 +41,9 @@ class Issue11211 extends DisplayTestCase {
|
|
#end
|
|
#end
|
|
**/
|
|
**/
|
|
function test() {
|
|
function test() {
|
|
- eq("Null<Int>", type(pos(1)));
|
|
|
|
|
|
+ eq("Int", type(pos(1)));
|
|
eq("Void", type(pos(2)));
|
|
eq("Void", type(pos(2)));
|
|
eq("Bool", type(pos(3)));
|
|
eq("Bool", type(pos(3)));
|
|
- var d = diagnostics();
|
|
|
|
arrayEq([
|
|
arrayEq([
|
|
{
|
|
{
|
|
kind: DKCompilerError,
|
|
kind: DKCompilerError,
|
|
@@ -54,6 +53,6 @@ class Issue11211 extends DisplayTestCase {
|
|
relatedInformation: [],
|
|
relatedInformation: [],
|
|
args: "Variables of type Void are not allowed"
|
|
args: "Variables of type Void are not allowed"
|
|
},
|
|
},
|
|
- ], d);
|
|
|
|
|
|
+ ], diagnostics());
|
|
}
|
|
}
|
|
}
|
|
}
|