blob: 62841e6a9502ec72ad4a8ba7a01763d053ae4412 [file] [log] [blame]
library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:16:3: Error: Late final variable '#local2' definitely assigned.
// local2 = value; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:17:3: Error: Late final variable '#local4' definitely assigned.
// local4 = 0; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:18:3: Error: Late final variable '#local6' definitely assigned.
// local6 = 0; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:30:3: Error: Late final variable '#local2' definitely assigned.
// local2 = value; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:31:3: Error: Late final variable '#local4' definitely assigned.
// local4 = 0; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:32:3: Error: Late final variable '#local6' definitely assigned.
// local6 = 0; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:50:3: Error: Late final variable '#local2' definitely assigned.
// local2 = value; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:51:3: Error: Late final variable '#local4' definitely assigned.
// local4 = 0; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:52:3: Error: Late final variable '#local6' definitely assigned.
// local6 = 0; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:70:3: Error: Late final variable '#local2' definitely assigned.
// local2 = value; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:71:3: Error: Late final variable '#local4' definitely assigned.
// local4 = 0; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:72:3: Error: Late final variable '#local6' definitely assigned.
// local6 = 0; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:80:3: Error: Late final variable '#local4' definitely assigned.
// local4 += 0; // error
// ^^^^^^^
//
// pkg/front_end/testcases/late_lowering/definitely_assigned.dart:88:3: Error: Late final variable '#local4' definitely assigned.
// local4 += 0; // error
// ^^^^^^^
//
import self as self;
import "dart:core" as core;
import "dart:_internal" as _in;
import "dart:async";
static field <T extends core::Object? = dynamic>(T%) Null fieldDirect = <T extends core::Object? = dynamic>(T% value) Null {
lowered final T? #local2;
lowered core::bool #local2#isSet = false;
function #local2#get() → T%
return #local2#isSet ?{T%} #local2{T%} : throw new _in::LateError::localNI("local2");
function #local2#set(T% #t1) → dynamic
if(#local2#isSet)
throw new _in::LateError::localAI("local2");
else {
#local2#isSet = true;
return #local2 = #t1;
}
lowered final core::int? #local4;
lowered core::bool #local4#isSet = false;
function #local4#get() → core::int
return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4");
function #local4#set(core::int #t2) → dynamic
if(#local4#isSet)
throw new _in::LateError::localAI("local4");
else {
#local4#isSet = true;
return #local4 = #t2;
}
lowered final FutureOr<core::int>? #local6;
lowered core::bool #local6#isSet = false;
function #local6#get() → FutureOr<core::int>
return #local6#isSet ?{FutureOr<core::int>} #local6{FutureOr<core::int>} : throw new _in::LateError::localNI("local6");
function #local6#set(FutureOr<core::int>#t3) → dynamic
if(#local6#isSet)
throw new _in::LateError::localAI("local6");
else {
#local6#isSet = true;
return #local6 = #t3;
}
#local2#set(value){(T%) → dynamic};
#local4#set(0){(core::int) → dynamic};
#local6#set(0){(FutureOr<core::int>) → dynamic};
let final Never #t4 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:30:3: Error: Late final variable '#local2' definitely assigned.
local2 = value; // error
^^^^^^^" in #local2#set(value){(T%) → dynamic};
let final Never #t5 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:31:3: Error: Late final variable '#local4' definitely assigned.
local4 = 0; // error
^^^^^^^" in #local4#set(0){(core::int) → dynamic};
let final Never #t6 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:32:3: Error: Late final variable '#local6' definitely assigned.
local6 = 0; // error
^^^^^^^" in #local6#set(0){(FutureOr<core::int>) → dynamic};
};
static field <T extends core::Object? = dynamic>(core::bool, T%) → Null fieldConditional = <T extends core::Object? = dynamic>(core::bool b, T% value) → Null {
lowered final T? #local2;
lowered core::bool #local2#isSet = false;
function #local2#get() → T%
return #local2#isSet ?{T%} #local2{T%} : throw new _in::LateError::localNI("local2");
function #local2#set(T% #t7) → dynamic
if(#local2#isSet)
throw new _in::LateError::localAI("local2");
else {
#local2#isSet = true;
return #local2 = #t7;
}
lowered final core::int? #local4;
lowered core::bool #local4#isSet = false;
function #local4#get() → core::int
return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4");
function #local4#set(core::int #t8) → dynamic
if(#local4#isSet)
throw new _in::LateError::localAI("local4");
else {
#local4#isSet = true;
return #local4 = #t8;
}
lowered final FutureOr<core::int>? #local6;
lowered core::bool #local6#isSet = false;
function #local6#get() → FutureOr<core::int>
return #local6#isSet ?{FutureOr<core::int>} #local6{FutureOr<core::int>} : throw new _in::LateError::localNI("local6");
function #local6#set(FutureOr<core::int>#t9) → dynamic
if(#local6#isSet)
throw new _in::LateError::localAI("local6");
else {
#local6#isSet = true;
return #local6 = #t9;
}
if(b) {
#local2#set(value){(T%) → dynamic};
#local4#set(0){(core::int) → dynamic};
#local6#set(0){(FutureOr<core::int>) → dynamic};
}
#local2#set(value){(T%) → dynamic};
#local4#set(0){(core::int) → dynamic};
#local6#set(0){(FutureOr<core::int>) → dynamic};
let final Never #t10 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:70:3: Error: Late final variable '#local2' definitely assigned.
local2 = value; // error
^^^^^^^" in #local2#set(value){(T%) → dynamic};
let final Never #t11 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:71:3: Error: Late final variable '#local4' definitely assigned.
local4 = 0; // error
^^^^^^^" in #local4#set(0){(core::int) → dynamic};
let final Never #t12 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:72:3: Error: Late final variable '#local6' definitely assigned.
local6 = 0; // error
^^^^^^^" in #local6#set(0){(FutureOr<core::int>) → dynamic};
};
static field () → Null fieldCompound = () → Null {
lowered final core::int? #local4;
lowered core::bool #local4#isSet = false;
function #local4#get() → core::int
return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4");
function #local4#set(core::int #t13) → dynamic
if(#local4#isSet)
throw new _in::LateError::localAI("local4");
else {
#local4#isSet = true;
return #local4 = #t13;
}
#local4#set(0){(core::int) → dynamic};
let final Never #t14 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:88:3: Error: Late final variable '#local4' definitely assigned.
local4 += 0; // error
^^^^^^^" in #local4#set(#local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic};
};
static method methodDirect<T extends core::Object? = dynamic>(self::methodDirect::T% value) → dynamic {
lowered final self::methodDirect::T? #local2;
lowered core::bool #local2#isSet = false;
function #local2#get() → self::methodDirect::T%
return #local2#isSet ?{self::methodDirect::T%} #local2{self::methodDirect::T%} : throw new _in::LateError::localNI("local2");
function #local2#set(self::methodDirect::T% #t15) → dynamic
if(#local2#isSet)
throw new _in::LateError::localAI("local2");
else {
#local2#isSet = true;
return #local2 = #t15;
}
lowered final core::int? #local4;
lowered core::bool #local4#isSet = false;
function #local4#get() → core::int
return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4");
function #local4#set(core::int #t16) → dynamic
if(#local4#isSet)
throw new _in::LateError::localAI("local4");
else {
#local4#isSet = true;
return #local4 = #t16;
}
lowered final FutureOr<core::int>? #local6;
lowered core::bool #local6#isSet = false;
function #local6#get() → FutureOr<core::int>
return #local6#isSet ?{FutureOr<core::int>} #local6{FutureOr<core::int>} : throw new _in::LateError::localNI("local6");
function #local6#set(FutureOr<core::int>#t17) → dynamic
if(#local6#isSet)
throw new _in::LateError::localAI("local6");
else {
#local6#isSet = true;
return #local6 = #t17;
}
#local2#set(value){(self::methodDirect::T%) → dynamic};
#local4#set(0){(core::int) → dynamic};
#local6#set(0){(FutureOr<core::int>) → dynamic};
let final Never #t18 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:16:3: Error: Late final variable '#local2' definitely assigned.
local2 = value; // error
^^^^^^^" in #local2#set(value){(self::methodDirect::T%) → dynamic};
let final Never #t19 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:17:3: Error: Late final variable '#local4' definitely assigned.
local4 = 0; // error
^^^^^^^" in #local4#set(0){(core::int) → dynamic};
let final Never #t20 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:18:3: Error: Late final variable '#local6' definitely assigned.
local6 = 0; // error
^^^^^^^" in #local6#set(0){(FutureOr<core::int>) → dynamic};
}
static method methodConditional<T extends core::Object? = dynamic>(core::bool b, self::methodConditional::T% value) → dynamic {
lowered final self::methodConditional::T? #local2;
lowered core::bool #local2#isSet = false;
function #local2#get() → self::methodConditional::T%
return #local2#isSet ?{self::methodConditional::T%} #local2{self::methodConditional::T%} : throw new _in::LateError::localNI("local2");
function #local2#set(self::methodConditional::T% #t21) → dynamic
if(#local2#isSet)
throw new _in::LateError::localAI("local2");
else {
#local2#isSet = true;
return #local2 = #t21;
}
lowered final core::int? #local4;
lowered core::bool #local4#isSet = false;
function #local4#get() → core::int
return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4");
function #local4#set(core::int #t22) → dynamic
if(#local4#isSet)
throw new _in::LateError::localAI("local4");
else {
#local4#isSet = true;
return #local4 = #t22;
}
lowered final FutureOr<core::int>? #local6;
lowered core::bool #local6#isSet = false;
function #local6#get() → FutureOr<core::int>
return #local6#isSet ?{FutureOr<core::int>} #local6{FutureOr<core::int>} : throw new _in::LateError::localNI("local6");
function #local6#set(FutureOr<core::int>#t23) → dynamic
if(#local6#isSet)
throw new _in::LateError::localAI("local6");
else {
#local6#isSet = true;
return #local6 = #t23;
}
if(b) {
#local2#set(value){(self::methodConditional::T%) → dynamic};
#local4#set(0){(core::int) → dynamic};
#local6#set(0){(FutureOr<core::int>) → dynamic};
}
#local2#set(value){(self::methodConditional::T%) → dynamic};
#local4#set(0){(core::int) → dynamic};
#local6#set(0){(FutureOr<core::int>) → dynamic};
let final Never #t24 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:50:3: Error: Late final variable '#local2' definitely assigned.
local2 = value; // error
^^^^^^^" in #local2#set(value){(self::methodConditional::T%) → dynamic};
let final Never #t25 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:51:3: Error: Late final variable '#local4' definitely assigned.
local4 = 0; // error
^^^^^^^" in #local4#set(0){(core::int) → dynamic};
let final Never #t26 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:52:3: Error: Late final variable '#local6' definitely assigned.
local6 = 0; // error
^^^^^^^" in #local6#set(0){(FutureOr<core::int>) → dynamic};
}
static method methodCompound() → dynamic {
lowered final core::int? #local4;
lowered core::bool #local4#isSet = false;
function #local4#get() → core::int
return #local4#isSet ?{core::int} #local4{core::int} : throw new _in::LateError::localNI("local4");
function #local4#set(core::int #t27) → dynamic
if(#local4#isSet)
throw new _in::LateError::localAI("local4");
else {
#local4#isSet = true;
return #local4 = #t27;
}
#local4#set(0){(core::int) → dynamic};
let final Never #t28 = invalid-expression "pkg/front_end/testcases/late_lowering/definitely_assigned.dart:80:3: Error: Late final variable '#local4' definitely assigned.
local4 += 0; // error
^^^^^^^" in #local4#set(#local4#get(){() → core::int}.{core::num::+}(0){(core::num) → core::int}){(core::int) → dynamic};
}
static method main() → dynamic {}