| library /*isNonNullableByDefault*/; |
| import self as self; |
| import "dart:core" as core; |
| |
| class Foo<T extends core::Object? = dynamic> extends core::Object /*hasConstConstructor*/ { |
| final field (core::String) → self::Foo::T% _foo; |
| const constructor •((core::String) →? self::Foo::T% foo) → self::Foo<self::Foo::T%> |
| : self::Foo::_foo = let final (core::String) →? self::Foo::T% #t1 = foo in #t1 == null ?{(core::String) → self::Foo::T%} #C1<self::Foo::T%> : #t1{(core::String) → self::Foo::T%}, super core::Object::•() |
| ; |
| } |
| static method bar<T extends core::Object? = dynamic>(core::String o) → self::bar::T% |
| return o as{ForNonNullableByDefault} self::bar::T%; |
| static method main() → void { |
| const self::Foo<core::int> myValue = #C5; |
| } |
| |
| constants { |
| #C1 = static-tearoff self::bar |
| #C2 = "baz" |
| #C3 = static-tearoff core::int::parse |
| #C4 = null |
| #C5 = eval self::Foo<core::int*>{_foo:(const core::bool::fromEnvironment(#C2) ?{(core::String, {onError: (core::String) →? core::int, radix: core::int?}) →? core::int} #C3 : #C4) == null ?{(core::String) → core::int*} #C1<core::int*> : const core::bool::fromEnvironment(#C2) ?{(core::String, {onError: (core::String) →? core::int, radix: core::int?}) →? core::int} #C3 : #C4} |
| } |
| |
| |
| Constructor coverage from constants: |
| org-dartlang-testcase:///issue_49245.dart: |
| - Foo. (from org-dartlang-testcase:///issue_49245.dart:6:9) |
| - Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart:25:9) |