blob: f8e1f81b1211fcfcad0e49e1d4bad17b7bc9d99d [file] [log] [blame] [edit]
library test;
//
// Problems in library:
//
// pkg/front_end/testcases/inference/propagate_inference_transitively.dart:13:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'.
// a1.x = /*error:INVALID_ASSIGNMENT*/ "hi";
// ^
//
// pkg/front_end/testcases/inference/propagate_inference_transitively.dart:16:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'.
// a2.x = /*error:INVALID_ASSIGNMENT*/ "hi";
// ^
//
import self as self;
import "dart:core" as core;
class A extends core::Object {
field core::int x = 2;
synthetic constructor •() self::A
: super core::Object::•()
;
}
static method test5() dynamic {
self::A a1 = new self::A::•();
a1.{self::A::x} = invalid-expression "pkg/front_end/testcases/inference/propagate_inference_transitively.dart:13:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'.
a1.x = /*error:INVALID_ASSIGNMENT*/ \"hi\";
^" in "hi" as{TypeError} core::int;
self::A a2 = new self::A::•();
a2.{self::A::x} = invalid-expression "pkg/front_end/testcases/inference/propagate_inference_transitively.dart:16:39: Error: A value of type 'String' can't be assigned to a variable of type 'int'.
a2.x = /*error:INVALID_ASSIGNMENT*/ \"hi\";
^" in "hi" as{TypeError} core::int;
}
static method main() dynamic {}