Files
sdk/pkg/front_end/testcases/dartdevc/instance_getter_invocation.dart.weak.expect
T
Johnni Winther 36641368bb [cfe] Treat NonNullableByDefault as default in ast-to-text
This changes ast-to-text to mark legacy libraries instead of
non-nullable-by-default libraries.

TEST=existing

Change-Id: Ib01147e4ef48c2c5b2ffc6b23547998344dfdf2e
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/307121
Commit-Queue: Johnni Winther <johnniwinther@google.com>
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
2023-06-08 06:28:50 +00:00

28 lines
1004 B
Plaintext

library;
import self as self;
import "dart:core" as core;
class Class extends core::Object {
synthetic constructor •() → self::Class
: super core::Object::•()
;
get idFunction() → <S extends core::Object? = dynamic>(S%) → S%
return #C1;
get dynFunction() → dynamic
return #C1;
static method _#new#tearOff() → self::Class
return new self::Class::•();
}
static method id<T extends core::Object? = dynamic>(self::id::T% t) → self::id::T%
return t;
static method main() → dynamic {
self::Class c = new self::Class::•();
let final self::Class #t1 = c in let final core::int #t2 = 0 in #t1.{self::Class::idFunction}<core::int>(#t2){(core::int) → core::int};
let final self::Class #t3 = c in let final core::int #t4 = 0 in #t3.{self::Class::idFunction}<core::int>(#t4){(core::int) → core::int};
let final self::Class #t5 = c in let final core::int #t6 = 0 in #t5.{self::Class::dynFunction}(#t6);
}
constants {
#C1 = static-tearoff self::id
}