-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 0767670 into dev
- Loading branch information
Showing
12 changed files
with
188 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) 2023, the Dart project authors. Please see the AUTHORS file | ||
// 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. | ||
|
||
sealed class Class { | ||
final int value; | ||
|
||
Class(this.value); | ||
} | ||
|
||
class A extends Class { | ||
A(super.value); | ||
} | ||
|
||
class B extends Class { | ||
B(super.value); | ||
} |
24 changes: 24 additions & 0 deletions
24
pkg/front_end/testcases/dart2js/sealed_class.dart.strong.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
library /*isNonNullableByDefault*/; | ||
import self as self; | ||
import "dart:core" as core; | ||
|
||
abstract sealed class Class extends core::Object { | ||
final field core::int value; | ||
constructor •(core::int value) → self::Class | ||
: self::Class::value = value, super core::Object::•() | ||
; | ||
} | ||
class A extends self::Class { | ||
constructor •(core::int value) → self::A | ||
: super self::Class::•(value) | ||
; | ||
static method _#new#tearOff(core::int value) → self::A | ||
return new self::A::•(value); | ||
} | ||
class B extends self::Class { | ||
constructor •(core::int value) → self::B | ||
: super self::Class::•(value) | ||
; | ||
static method _#new#tearOff(core::int value) → self::B | ||
return new self::B::•(value); | ||
} |
24 changes: 24 additions & 0 deletions
24
pkg/front_end/testcases/dart2js/sealed_class.dart.strong.transformed.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
library /*isNonNullableByDefault*/; | ||
import self as self; | ||
import "dart:core" as core; | ||
|
||
abstract sealed class Class extends core::Object { | ||
final field core::int value; | ||
constructor •(core::int value) → self::Class | ||
: self::Class::value = value, super core::Object::•() | ||
; | ||
} | ||
class A extends self::Class { | ||
constructor •(core::int value) → self::A | ||
: super self::Class::•(value) | ||
; | ||
static method _#new#tearOff(core::int value) → self::A | ||
return new self::A::•(value); | ||
} | ||
class B extends self::Class { | ||
constructor •(core::int value) → self::B | ||
: super self::Class::•(value) | ||
; | ||
static method _#new#tearOff(core::int value) → self::B | ||
return new self::B::•(value); | ||
} |
12 changes: 12 additions & 0 deletions
12
pkg/front_end/testcases/dart2js/sealed_class.dart.textual_outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
sealed class Class { | ||
final int value; | ||
Class(this.value); | ||
} | ||
|
||
class A extends Class { | ||
A(super.value); | ||
} | ||
|
||
class B extends Class { | ||
B(super.value); | ||
} |
12 changes: 12 additions & 0 deletions
12
pkg/front_end/testcases/dart2js/sealed_class.dart.textual_outline_modelled.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
class A extends Class { | ||
A(super.value); | ||
} | ||
|
||
class B extends Class { | ||
B(super.value); | ||
} | ||
|
||
sealed class Class { | ||
Class(this.value); | ||
final int value; | ||
} |
24 changes: 24 additions & 0 deletions
24
pkg/front_end/testcases/dart2js/sealed_class.dart.weak.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
library /*isNonNullableByDefault*/; | ||
import self as self; | ||
import "dart:core" as core; | ||
|
||
abstract sealed class Class extends core::Object { | ||
final field core::int value; | ||
constructor •(core::int value) → self::Class | ||
: self::Class::value = value, super core::Object::•() | ||
; | ||
} | ||
class A extends self::Class { | ||
constructor •(core::int value) → self::A | ||
: super self::Class::•(value) | ||
; | ||
static method _#new#tearOff(core::int value) → self::A | ||
return new self::A::•(value); | ||
} | ||
class B extends self::Class { | ||
constructor •(core::int value) → self::B | ||
: super self::Class::•(value) | ||
; | ||
static method _#new#tearOff(core::int value) → self::B | ||
return new self::B::•(value); | ||
} |
24 changes: 24 additions & 0 deletions
24
pkg/front_end/testcases/dart2js/sealed_class.dart.weak.modular.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
library /*isNonNullableByDefault*/; | ||
import self as self; | ||
import "dart:core" as core; | ||
|
||
abstract sealed class Class extends core::Object { | ||
final field core::int value; | ||
constructor •(core::int value) → self::Class | ||
: self::Class::value = value, super core::Object::•() | ||
; | ||
} | ||
class A extends self::Class { | ||
constructor •(core::int value) → self::A | ||
: super self::Class::•(value) | ||
; | ||
static method _#new#tearOff(core::int value) → self::A | ||
return new self::A::•(value); | ||
} | ||
class B extends self::Class { | ||
constructor •(core::int value) → self::B | ||
: super self::Class::•(value) | ||
; | ||
static method _#new#tearOff(core::int value) → self::B | ||
return new self::B::•(value); | ||
} |
21 changes: 21 additions & 0 deletions
21
pkg/front_end/testcases/dart2js/sealed_class.dart.weak.outline.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
library /*isNonNullableByDefault*/; | ||
import self as self; | ||
import "dart:core" as core; | ||
|
||
abstract sealed class Class extends core::Object { | ||
final field core::int value; | ||
constructor •(core::int value) → self::Class | ||
; | ||
} | ||
class A extends self::Class { | ||
constructor •(core::int value) → self::A | ||
; | ||
static method _#new#tearOff(core::int value) → self::A | ||
return new self::A::•(value); | ||
} | ||
class B extends self::Class { | ||
constructor •(core::int value) → self::B | ||
; | ||
static method _#new#tearOff(core::int value) → self::B | ||
return new self::B::•(value); | ||
} |
24 changes: 24 additions & 0 deletions
24
pkg/front_end/testcases/dart2js/sealed_class.dart.weak.transformed.expect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
library /*isNonNullableByDefault*/; | ||
import self as self; | ||
import "dart:core" as core; | ||
|
||
abstract sealed class Class extends core::Object { | ||
final field core::int value; | ||
constructor •(core::int value) → self::Class | ||
: self::Class::value = value, super core::Object::•() | ||
; | ||
} | ||
class A extends self::Class { | ||
constructor •(core::int value) → self::A | ||
: super self::Class::•(value) | ||
; | ||
static method _#new#tearOff(core::int value) → self::A | ||
return new self::A::•(value); | ||
} | ||
class B extends self::Class { | ||
constructor •(core::int value) → self::B | ||
: super self::Class::•(value) | ||
; | ||
static method _#new#tearOff(core::int value) → self::B | ||
return new self::B::•(value); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,5 +27,5 @@ CHANNEL dev | |
MAJOR 3 | ||
MINOR 1 | ||
PATCH 0 | ||
PRERELEASE 110 | ||
PRERELEASE 111 | ||
PRERELEASE_PATCH 0 |