Files
sdk/pkg/front_end/testcases/inline_class/annotations.dart.weak.expect
T
Ahmed Ashour 28f69d5bd3 [cfe] inline class to handle annotations in constructors
Fixes #51397

Change-Id: I3454d1ce2f80567c57a781a485897bf795701696
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/283041
Reviewed-by: Johnni Winther <johnniwinther@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2023-02-16 19:32:11 +00:00

34 lines
884 B
Plaintext

library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;
@#C2
inline class A /* declaredRepresentationType = core::int */ {
method m = self::A|m;
tearoff m = self::A|get#m;
constructor • = self::A|;
tearoff • = self::A|get#;
}
@#C2
static method A|(core::int i) → self::A {
final self::A #this = i;
return #this;
}
static method A|get#(core::int i) → self::A
return self::A|(i);
@#C2
static method A|m(lowered final self::A #this) → void {}
static method A|get#m(lowered final self::A #this) → () → void
return () → void => self::A|m(#this);
constants {
#C1 = ""
#C2 = core::Deprecated {message:#C1}
}
Constructor coverage from constants:
org-dartlang-testcase:///annotations.dart:
- Deprecated. (from org-dartlang-sdk:///sdk/lib/core/annotations.dart)
- Object. (from org-dartlang-sdk:///sdk/lib/core/object.dart)