blob: d7d84fbfc15701f0b11f481d8a06f44878da191d [file] [log] [blame]
library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;
import "package:expect/expect.dart" as exp;
import "dart:typed_data" as typ;
import "dart:typed_data";
import "package:expect/expect.dart";
class Foo extends core::Object {
final field dynamic value;
constructor •(dynamic value) self::Foo
: self::Foo::value = value, super core::Object::•() {}
static factory fac(dynamic value) self::Foo {
return new self::Foo::•(value);
}
}
static field core::List<core::int> list = core::_GrowableList::_literal3<core::int>(1, 2, 3);
static method main() dynamic {
exp::Expect::isTrue(typ::Uint8List::fromList(self::list).{core::List::[]}(1){(core::int) core::int} =={core::num::==}{(core::Object) core::bool} 2);
exp::Expect::isTrue(self::Foo::fac(10).{self::Foo::value}{dynamic} =={core::Object::==}{(core::Object) core::bool} 10);
}