| 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; |
| function #local4#get() → core::int |
| return let final core::int? #t2 = #local4 in #t2 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t2{core::int}; |
| function #local4#set(core::int #t3) → dynamic |
| if(#local4 == null) |
| return #local4 = #t3; |
| else |
| throw new _in::LateError::localAI("local4"); |
| lowered final FutureOr<core::int>? #local6; |
| function #local6#get() → FutureOr<core::int> |
| return let final FutureOr<core::int>? #t4 = #local6 in #t4 == null ?{FutureOr<core::int>} throw new _in::LateError::localNI("local6") : #t4{FutureOr<core::int>}; |
| function #local6#set(FutureOr<core::int>#t5) → dynamic |
| if(#local6 == null) |
| return #local6 = #t5; |
| else |
| throw new _in::LateError::localAI("local6"); |
| #local2#set(value){(T%) → dynamic}; |
| #local4#set(0){(core::int) → dynamic}; |
| #local6#set(0){(FutureOr<core::int>) → dynamic}; |
| let final Never #t6 = 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 #t7 = 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 #t8 = 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% #t9) → dynamic |
| if(#local2#isSet) |
| throw new _in::LateError::localAI("local2"); |
| else { |
| #local2#isSet = true; |
| return #local2 = #t9; |
| } |
| lowered final core::int? #local4; |
| function #local4#get() → core::int |
| return let final core::int? #t10 = #local4 in #t10 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t10{core::int}; |
| function #local4#set(core::int #t11) → dynamic |
| if(#local4 == null) |
| return #local4 = #t11; |
| else |
| throw new _in::LateError::localAI("local4"); |
| lowered final FutureOr<core::int>? #local6; |
| function #local6#get() → FutureOr<core::int> |
| return let final FutureOr<core::int>? #t12 = #local6 in #t12 == null ?{FutureOr<core::int>} throw new _in::LateError::localNI("local6") : #t12{FutureOr<core::int>}; |
| function #local6#set(FutureOr<core::int>#t13) → dynamic |
| if(#local6 == null) |
| return #local6 = #t13; |
| else |
| throw new _in::LateError::localAI("local6"); |
| 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 #t14 = 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 #t15 = 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 #t16 = 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; |
| function #local4#get() → core::int |
| return let final core::int? #t17 = #local4 in #t17 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t17{core::int}; |
| function #local4#set(core::int #t18) → dynamic |
| if(#local4 == null) |
| return #local4 = #t18; |
| else |
| throw new _in::LateError::localAI("local4"); |
| #local4#set(0){(core::int) → dynamic}; |
| let final Never #t19 = 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% #t20) → dynamic |
| if(#local2#isSet) |
| throw new _in::LateError::localAI("local2"); |
| else { |
| #local2#isSet = true; |
| return #local2 = #t20; |
| } |
| lowered final core::int? #local4; |
| function #local4#get() → core::int |
| return let final core::int? #t21 = #local4 in #t21 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t21{core::int}; |
| function #local4#set(core::int #t22) → dynamic |
| if(#local4 == null) |
| return #local4 = #t22; |
| else |
| throw new _in::LateError::localAI("local4"); |
| lowered final FutureOr<core::int>? #local6; |
| function #local6#get() → FutureOr<core::int> |
| return let final FutureOr<core::int>? #t23 = #local6 in #t23 == null ?{FutureOr<core::int>} throw new _in::LateError::localNI("local6") : #t23{FutureOr<core::int>}; |
| function #local6#set(FutureOr<core::int>#t24) → dynamic |
| if(#local6 == null) |
| return #local6 = #t24; |
| else |
| throw new _in::LateError::localAI("local6"); |
| #local2#set(value){(self::methodDirect::T%) → dynamic}; |
| #local4#set(0){(core::int) → dynamic}; |
| #local6#set(0){(FutureOr<core::int>) → dynamic}; |
| let final Never #t25 = 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 #t26 = 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 #t27 = 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% #t28) → dynamic |
| if(#local2#isSet) |
| throw new _in::LateError::localAI("local2"); |
| else { |
| #local2#isSet = true; |
| return #local2 = #t28; |
| } |
| lowered final core::int? #local4; |
| function #local4#get() → core::int |
| return let final core::int? #t29 = #local4 in #t29 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t29{core::int}; |
| function #local4#set(core::int #t30) → dynamic |
| if(#local4 == null) |
| return #local4 = #t30; |
| else |
| throw new _in::LateError::localAI("local4"); |
| lowered final FutureOr<core::int>? #local6; |
| function #local6#get() → FutureOr<core::int> |
| return let final FutureOr<core::int>? #t31 = #local6 in #t31 == null ?{FutureOr<core::int>} throw new _in::LateError::localNI("local6") : #t31{FutureOr<core::int>}; |
| function #local6#set(FutureOr<core::int>#t32) → dynamic |
| if(#local6 == null) |
| return #local6 = #t32; |
| else |
| throw new _in::LateError::localAI("local6"); |
| 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 #t33 = 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 #t34 = 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 #t35 = 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; |
| function #local4#get() → core::int |
| return let final core::int? #t36 = #local4 in #t36 == null ?{core::int} throw new _in::LateError::localNI("local4") : #t36{core::int}; |
| function #local4#set(core::int #t37) → dynamic |
| if(#local4 == null) |
| return #local4 = #t37; |
| else |
| throw new _in::LateError::localAI("local4"); |
| #local4#set(0){(core::int) → dynamic}; |
| let final Never #t38 = 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 {} |