blob: f8811d2af4960824d581d74a4ff4d237f9b1c6ff [file] [log] [blame]
library;
import self as self;
import "dart:core" as core;
static const field core::bool* y = false;
static const field core::bool* z = !self::y;
static const field core::Object* maybeInt = self::z ?{core::Object*} 42 : true;
static const field core::bool* isItInt = self::maybeInt is core::int* ?{core::bool*} true : false;
static const field core::bool* isItDouble = self::maybeInt is core::double* ?{core::bool*} true : false;
static const field core::int* actualInt = 42;
static const field core::bool* isItInt2 = self::actualInt is core::int* ?{core::bool*} true : false;
static const field core::bool* isItDouble2 = self::actualInt is core::double* ?{core::bool*} true : false;
static const field core::Object* maybeDouble = self::z ?{core::Object*} 42.0 : true;
static const field core::bool* isItInt3 = self::maybeDouble is core::int* ?{core::bool*} true : false;
static const field core::bool* isItDouble3 = self::maybeDouble is core::double* ?{core::bool*} true : false;
static const field core::double* actualDouble = 42.0;
static const field core::bool* isItInt4 = self::actualDouble is core::int* ?{core::bool*} true : false;
static const field core::bool* isItDouble4 = self::actualDouble is core::double* ?{core::bool*} true : false;
static const field core::Object* maybeDouble2 = self::z ?{core::Object*} 42.42 : true;
static const field core::bool* isItInt5 = self::maybeDouble2 is core::int* ?{core::bool*} true : false;
static const field core::bool* isItDouble5 = self::maybeDouble2 is core::double* ?{core::bool*} true : false;
static const field core::double* actualDouble2 = 42.42;
static const field core::bool* isItInt6 = self::actualDouble2 is core::int* ?{core::bool*} true : false;
static const field core::bool* isItDouble7 = self::actualDouble2 is core::double* ?{core::bool*} true : false;
static const field core::bool* zeroPointZeroIdentical = core::identical(0.0, 0.0);
static const field core::bool* zeroPointZeroIdenticalToZero = core::identical(0.0, 0);
static const field core::bool* zeroIdenticalToZeroPointZero = core::identical(0, 0.0);
static const field core::bool* nanIdentical = core::identical(0.{core::num::/}(0), 0.{core::num::/}(0));
static const field core::bool* stringIdentical = core::identical("hello", "hello");
static const field core::bool* string2Identical = core::identical("hello", "world");
static const field core::bool* zeroPointZeroEqual = 0.0.{core::num::==}(0.0);
static const field core::bool* zeroPointZeroEqualToZero = 0.0.{core::num::==}(0);
static const field core::bool* zeroEqualToZeroPointZero = 0.{core::num::==}(0.0);
static const field core::bool* nanEqual = 0.{core::num::/}(0).{core::num::==}(0.{core::num::/}(0));
static const field core::bool* stringEqual = "hello".{core::String::==}("hello");
static const field core::bool* string2Equal = "hello".{core::String::==}("world");
static const field core::int* intFortyTwo = 42;
static const field core::String* intStringConcat = "hello${self::intFortyTwo.{core::num::*}(self::intFortyTwo)}";