92e237c835
The web compilers don't support getter/field invocation encoded as a FunctionInvocation on an InstanceGet because it doesn't work for getter/field invocation of js-interop properties, since the InstanceGet wouldn't result in a Dart function but just JavaScript function. To support this in the new method invocation encoding, a special expression, InstanceGetterInvocation, is used to encode getter/field invocations in dart2js and ddc. Change-Id: I21da8e8686f66ae4ce4d44245073b9e424f975b9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/192181 Reviewed-by: Dmitry Stefantsov <dmitryas@google.com> Commit-Queue: Johnni Winther <johnniwinther@google.com>
17 lines
415 B
Plaintext
17 lines
415 B
Plaintext
library /*isNonNullableByDefault*/;
|
|
import self as self;
|
|
import "dart:core" as core;
|
|
|
|
class Class extends core::Object {
|
|
synthetic constructor •() → self::Class
|
|
;
|
|
get idFunction() → <S extends core::Object? = dynamic>(S%) → S%
|
|
;
|
|
get dynFunction() → dynamic
|
|
;
|
|
}
|
|
static method id<T extends core::Object? = dynamic>(self::id::T% t) → self::id::T%
|
|
;
|
|
static method main() → dynamic
|
|
;
|