blob: bf3bdebed8c1d0efac3b5fdaf5ce54b7db9e410a [file] [log] [blame]
library test /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;
class C<T extends core::Object? = dynamic> extends core::Object /*hasConstConstructor*/ {
const constructor •() self::C<self::C::T%>
: super core::Object::•()
;
}
static method f<T extends core::Object? = dynamic>() self::f::T%
return throw "";
static method test(self::C<core::int> x) void {
#L1:
{
final synthesized self::C<core::int> #0#0 = x;
if(#C1 =={core::Object::==}{(core::Object) core::bool} #0#0) {
{
core::int y = 0;
break #L1;
}
}
else {
{
core::int y = 0;
break #L1;
}
}
}
}
static method main() dynamic {}
constants {
#C1 = self::C<core::int*> {}
}
Constructor coverage from constants:
org-dartlang-testcase:///switch.dart:
- C. (from org-dartlang-testcase:///switch.dart:11:9)
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)