blob: 1a88bc8dbe9e22d84aaf50abc8a2aff0417e4758 [file] [log] [blame]
library;
//
// Problems in library:
//
// pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
// String debugName = Isolate.current.debugName; // error
// ^
//
import self as self;
import "dart:core" as core;
import "dart:isolate" as iso;
import "dart:isolate";
static method main() void {
core::String debugName = let final core::String? #t1 = iso::Isolate::current.{iso::Isolate::debugName}{core::String?} in #t1 == null ?{core::String} "" : #t1{core::String};
}
static method test() void {
core::String debugName = invalid-expression "pkg/front_end/testcases/general/issue48090.dart:12:38: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't.
String debugName = Isolate.current.debugName; // error
^" in let core::String? #t2 = iso::Isolate::current.{iso::Isolate::debugName}{core::String?} in #t2 == null ?{core::String} #t2 as{TypeError} core::String : #t2{core::String};
}