Skip to content

Commit

Permalink
[CFE] Change test to fix weekly bot #104
Browse files Browse the repository at this point in the history
The test used an unnamed extension effectively making it private,
meaning that the fuzz test that splits the file up doesn't work.
There seem to be no reason for it to be unnamed so this CL names it,
thus fixing the failure when fuzzing.

Change-Id: Iaeb01739dad50f1894a619fe18b81408fa646ce3
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/255811
Reviewed-by: Johnni Winther <[email protected]>
Commit-Queue: Jens Johansen <[email protected]>
  • Loading branch information
jensjoha authored and Commit Bot committed Aug 19, 2022
1 parent a85157e commit 9c4725f
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion pkg/front_end/testcases/extensions/null_aware_set.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

extension on Object {
extension Foo on Object {
set f(int x) {}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extension on Object {
extension Foo on Object {
set f(int x) {}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
extension on Object {
extension Foo on Object {
set f(int x) {}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;

extension _extension#0 on core::Object {
set f = self::_extension#0|set#f;
extension Foo on core::Object {
set f = self::Foo|set#f;
}
static method _extension#0|set#f(lowered final core::Object #this, core::int x) → void {}
static method Foo|set#f(lowered final core::Object #this, core::int x) → void {}
static method fun(core::String? s) → void {
let final core::String? #t1 = s in #t1 == null ?{void} null : self::_extension#0|set#f(#t1{core::String}, 1);
let final core::String? #t1 = s in #t1 == null ?{void} null : self::Foo|set#f(#t1{core::String}, 1);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;

extension _extension#0 on core::Object {
set f = self::_extension#0|set#f;
extension Foo on core::Object {
set f = self::Foo|set#f;
}
static method _extension#0|set#f(lowered final core::Object #this, core::int x) → void {}
static method Foo|set#f(lowered final core::Object #this, core::int x) → void {}
static method fun(core::String? s) → void {
let final core::String? #t1 = s in #t1 == null ?{void} null : self::_extension#0|set#f(#t1{core::String}, 1);
let final core::String? #t1 = s in #t1 == null ?{void} null : self::Foo|set#f(#t1{core::String}, 1);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;

extension _extension#0 on core::Object {
set f = self::_extension#0|set#f;
extension Foo on core::Object {
set f = self::Foo|set#f;
}
static method _extension#0|set#f(lowered final core::Object #this, core::int x) → void
static method Foo|set#f(lowered final core::Object #this, core::int x) → void
;
static method fun(core::String? s) → void
;
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ library /*isNonNullableByDefault*/;
import self as self;
import "dart:core" as core;

extension _extension#0 on core::Object {
set f = self::_extension#0|set#f;
extension Foo on core::Object {
set f = self::Foo|set#f;
}
static method _extension#0|set#f(lowered final core::Object #this, core::int x) → void {}
static method Foo|set#f(lowered final core::Object #this, core::int x) → void {}
static method fun(core::String? s) → void {
let final core::String? #t1 = s in #t1 == null ?{void} null : self::_extension#0|set#f(#t1{core::String}, 1);
let final core::String? #t1 = s in #t1 == null ?{void} null : self::Foo|set#f(#t1{core::String}, 1);
}

0 comments on commit 9c4725f

Please sign in to comment.