Files
sdk/pkg/front_end/testcases/none/new_method_invocation_encodings.dart.weak.expect
T
Johnni Winther 01b0947a6d [kernel] Update kernel encodings
* Add InstanceGetterInvocation for getter/field invocation in web
  backends
* Add localFunction getter to LocalFunctionInvocation
* Remove isNot from EqualsCall and EqualsNull - the encoding didn't
  carry its weight.
* Remove uses of Name.name
* Remove BottomType code from VM

TEST=existing

Change-Id: I99d05d35b9ef193d092cc151c99ad472dbd60834
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/188725
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Dmitry Stefantsov <dmitryas@google.com>
2021-03-08 11:29:51 +00:00

56 lines
2.0 KiB
Plaintext

library /*isNonNullableByDefault*/;
//
// Problems in library:
//
// pkg/front_end/testcases/none/new_method_invocation_encodings.dart:7:8: Error: A method declaration needs an explicit list of parameters.
// Try adding a parameter list to the method declaration.
// int? getter => null;
// ^^^^^^
//
// pkg/front_end/testcases/none/new_method_invocation_encodings.dart:14:5: Error: The setter 'setter' isn't defined for the class 'Class'.
// - 'Class' is from 'pkg/front_end/testcases/none/new_method_invocation_encodings.dart'.
// Try correcting the name to the name of an existing setter, or defining a setter or field named 'setter'.
// c.setter = c.getter;
// ^^^^^^
//
import self as self;
import "dart:core" as core;
class Class extends core::Object {
field core::int? field = null;
synthetic constructor •() → self::Class
: super core::Object::•()
;
method getter() → core::int?
return null;
method setter(core::int? value) → void {}
method method() → void {}
}
static method test(self::Class c, dynamic d, core::Function f1, () → void f2) → dynamic {
c.{self::Class::field} = c.{self::Class::field}{core::int?};
invalid-expression "pkg/front_end/testcases/none/new_method_invocation_encodings.dart:14:5: Error: The setter 'setter' isn't defined for the class 'Class'.
- 'Class' is from 'pkg/front_end/testcases/none/new_method_invocation_encodings.dart'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'setter'.
c.setter = c.getter;
^^^^^^";
c.{self::Class::method}{() → void};
c.{self::Class::method}(){() → void};
d{dynamic}.field = d{dynamic}.field;
d{dynamic}.setter = d{dynamic}.getter;
d{dynamic}.method;
d{dynamic}.method();
f1();
f1.call;
f2(){() → void};
f2.call;
function local() → Null {}
local(){() → Null};
c =={core::Object::==}{(core::Object) → core::bool} d;
!(c =={core::Object::==}{(core::Object) → core::bool} d);
c == null;
!(c == null);
d == null;
!(d == null);
}
static method main() → dynamic {}