File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
tests/language/extension_type Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -570,7 +570,7 @@ class Translator with KernelNodes {
570
570
}
571
571
if (type is TypeParameterType ) {
572
572
return translateStorageType (nullable
573
- ? type.bound.withDeclaredNullability (type.nullability )
573
+ ? type.bound.withDeclaredNullability (Nullability .nullable )
574
574
: type.bound);
575
575
}
576
576
if (type is IntersectionType ) {
Original file line number Diff line number Diff line change
1
+ // Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file
2
+ // for details. All rights reserved. Use of this source code is governed by a
3
+ // BSD-style license that can be found in the LICENSE file.
4
+
5
+ // SharedOptions=--enable-experiment=inline-class
6
+
7
+ // Regression check for https://dartbug.com/53968
8
+
9
+ extension type A (int a) {}
10
+
11
+ T returnA <T extends A ?>() {
12
+ return null as T ;
13
+ }
14
+
15
+ void main () {
16
+ returnA ();
17
+ }
You can’t perform that action at this time.
0 commit comments